summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2014-10-14 08:23:20 -0400
committerAndrew Morrow <acm@mongodb.com>2014-10-15 20:51:31 -0400
commitcea7003c9124435452b2d1f9828907e857bcd26b (patch)
tree3bc6afc3f634d3a561daaff104dd8c5fc7a7bfca
parentd5a7c0a1d7dfda7a67072dfe449ca1ace54d8380 (diff)
downloadmongo-cea7003c9124435452b2d1f9828907e857bcd26b.tar.gz
SERVER-15644 Delete lock buckets in lock manager dtor
-rw-r--r--src/mongo/db/concurrency/lock_mgr_new.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/concurrency/lock_mgr_new.cpp b/src/mongo/db/concurrency/lock_mgr_new.cpp
index 3e713ffee5e..fc6e9211653 100644
--- a/src/mongo/db/concurrency/lock_mgr_new.cpp
+++ b/src/mongo/db/concurrency/lock_mgr_new.cpp
@@ -203,6 +203,8 @@ namespace mongo {
invariant(bucket->data.empty());
}
}
+
+ delete[] _lockBuckets;
}
LockResult LockManager::lock(const ResourceId& resId, LockRequest* request, LockMode mode) {