]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
kv_flat_btree_async.cc: release AioCompletion before leave the loop 297/head
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 16 May 2013 17:41:49 +0000 (19:41 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 17 May 2013 11:58:40 +0000 (13:58 +0200)
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 <danny.al-gaaf@bisect.de>
src/key_value_store/kv_flat_btree_async.cc

index fecf32b6b111b2008bcc3f2c4a23bc4808e44064..c79555e7de99567a3ae905ddc775db216a18cd35 100644 (file)
@@ -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;