diff options
author | Andrew Morrow <acm@mongodb.com> | 2014-10-13 20:03:51 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2014-10-15 20:51:30 -0400 |
commit | 8180c686e9fb3fab8a96aececeeb83ffa96435c3 (patch) | |
tree | 1e58a6e00c58a8faff688c290ebaa2ebe68de64a /src/mongo/db/range_deleter.cpp | |
parent | 27147aaf26aef235f8a65223e876adeea016886a (diff) | |
download | mongo-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.cpp | 7 |
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() { |