]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commitdiff
env_mirror: fix leak from LockFile
authorSage Weil <sage@redhat.com>
Wed, 28 Sep 2016 17:53:46 +0000 (13:53 -0400)
committerSage Weil <sage@redhat.com>
Wed, 28 Sep 2016 17:53:46 +0000 (13:53 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
include/rocksdb/utilities/env_mirror.h

index 021fbfa45b7c7e194c3c6c804d5aaa7b029da7fa..88c0621a421499a72630319f87caf5d7fb9470c1 100644 (file)
@@ -155,6 +155,7 @@ class EnvMirror : public EnvWrapper {
     Status as = a_->UnlockFile(ml->a_);
     Status bs = b_->UnlockFile(ml->b_);
     assert(as == bs);
+    delete ml;
     return as;
   }
 };