]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
kv_flat_btree_async.cc: fix resource leak 320/head
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 24 May 2013 12:29:14 +0000 (14:29 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 24 May 2013 12:43:17 +0000 (14:43 +0200)
commit7b438e131bb472da35bc1b4c2fbb97809a91d444
treeaf2801bbc8b990ea337dcac06b5ca122a4188ab5
parentbb407bfd101d9707c63655cb3c1b51346a0de8cd
kv_flat_btree_async.cc: fix resource leak

Call AioCompletion::release() if the completion is no longer
needed to free the resources.

CID 727983 : 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