From: xie xingguo Date: Sat, 25 Jun 2016 08:21:11 +0000 (+0800) Subject: os/bluestore: fix memory leak during bit_alloc ut X-Git-Tag: v11.0.0~40^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F9913%2Fhead;p=ceph.git os/bluestore: fix memory leak during bit_alloc ut Signed-off-by: xie xingguo --- diff --git a/src/test/objectstore/BitAllocator_test.cc b/src/test/objectstore/BitAllocator_test.cc index ff8d1be166e5..7364ea5fd2e3 100644 --- a/src/test/objectstore/BitAllocator_test.cc +++ b/src/test/objectstore/BitAllocator_test.cc @@ -423,6 +423,7 @@ TEST(BitAllocator, test_bmap_alloc) alloc->free_blocks(i, 1); } } + delete alloc; // Make three > 3 levels tree and check allocations and dealloc // in a loop