summaryrefslogtreecommitdiff
path: root/src/mongo/db/range_deleter.cpp
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2014-10-13 20:03:51 -0400
committerAndrew Morrow <acm@mongodb.com>2014-10-15 20:51:30 -0400
commit8180c686e9fb3fab8a96aececeeb83ffa96435c3 (patch)
tree1e58a6e00c58a8faff688c290ebaa2ebe68de64a /src/mongo/db/range_deleter.cpp
parent27147aaf26aef235f8a65223e876adeea016886a (diff)
downloadmongo-8180c686e9fb3fab8a96aececeeb83ffa96435c3.tar.gz
SERVER-15631 Free delete stats in RangeDeleter dtor
Diffstat (limited to 'src/mongo/db/range_deleter.cpp')
-rw-r--r--src/mongo/db/range_deleter.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/range_deleter.cpp b/src/mongo/db/range_deleter.cpp
index c0715c96d9c..6fb56467728 100644
--- a/src/mongo/db/range_deleter.cpp
+++ b/src/mongo/db/range_deleter.cpp
@@ -187,6 +187,13 @@ namespace mongo {
++it) {
delete (*it);
}
+
+ for(std::deque<DeleteJobStats*>::iterator it = _statsHistory.begin();
+ it != _statsHistory.end();
+ ++it) {
+ delete (*it);
+ }
+
}
void RangeDeleter::startWorkers() {