]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test_shared_cache: fix memory leak.
authorJianpeng Ma <jianpeng.ma@intel.com>
Thu, 22 Nov 2018 07:36:40 +0000 (15:36 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Thu, 22 Nov 2018 07:36:40 +0000 (15:36 +0800)
commit4c86b6c34e1c88f67acb72fefb36b89a19264f15
tree3f713ce93c839b4207f352b529a3eefadea289e5
parent1756025ce1ca62e4a70829a19f4a0448ff32eb21
test_shared_cache: fix memory leak.

Based on SharedLRU::add,  If the key already existed, you are
responsible for deleting the new value you tried to insert.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/test/common/test_shared_cache.cc