]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: fix memory leak during bit_alloc ut 9913/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Sat, 25 Jun 2016 08:21:11 +0000 (16:21 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Sat, 25 Jun 2016 08:21:11 +0000 (16:21 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/test/objectstore/BitAllocator_test.cc

index ff8d1be166e50592b5124c97b48db8d2c3f49dea..7364ea5fd2e3495ac2228609d04547f06ab6e1d8 100644 (file)
@@ -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