]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/crush: fix memory leak
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 18 Jul 2017 10:49:45 +0000 (18:49 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 26 Jul 2017 14:41:33 +0000 (22:41 +0800)
commit1ed72c3e861283f83580449f53a627c317d1b2a5
treea039a670468e3d7c0cf597fb52f850697fcc4bb6
parente75465fdacd2fd137beab5af779e2d80d3e8f818
test/crush: fix memory leak

use unique_ptr<> instead, otherwise static analyzer will complain.
as ASSERT_EQ will bail out without executing delete c

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/test/crush/CrushWrapper.cc