We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5404355 commit 6bcfe51Copy full SHA for 6bcfe51
src/mongo/client/write_operation.h
@@ -102,12 +102,15 @@ namespace mongo {
102
*/
103
struct ScopedWriteOperations {
104
ScopedWriteOperations() { }
105
+
106
~ScopedWriteOperations() {
107
std::vector<WriteOperation*>::const_iterator it;
- for ( it = ops.begin(); it != ops.end(); ++it )
108
+ for (it = ops.begin(); it != ops.end(); ++it)
109
delete *it;
110
}
111
112
void enqueue(WriteOperation* op) { ops.push_back(op); }
113
114
std::vector<WriteOperation*> ops;
115
};
116
0 commit comments