From a130cd501a04cee2064d28b88df882e3687a515e Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Thu, 16 May 2013 19:41:49 +0200 Subject: [PATCH] kv_flat_btree_async.cc: release AioCompletion before leave the loop CID 727982 (#1 of 1): Resource leak (RESOURCE_LEAK) leaked_storage: Variable "aioc" going out of scope leaks the storage it points to. Signed-off-by: Danny Al-Gaaf --- src/key_value_store/kv_flat_btree_async.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/key_value_store/kv_flat_btree_async.cc b/src/key_value_store/kv_flat_btree_async.cc index fecf32b6b111..c79555e7de99 100644 --- a/src/key_value_store/kv_flat_btree_async.cc +++ b/src/key_value_store/kv_flat_btree_async.cc @@ -2230,6 +2230,7 @@ string KvFlatBtreeAsync::str() { all_sizes[indexer] = all_maps[indexer].size(); all_versions[indexer] = aioc->get_version(); indexer++; + aioc->release(); } ret << "///////////////////OBJECT NAMES////////////////" << std::endl; -- 2.47.3