]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
kv_flat_btree_async.cc: fix AioCompletion resource leak 324/head
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 28 May 2013 10:38:57 +0000 (12:38 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 28 May 2013 10:38:57 +0000 (12:38 +0200)
commite6efc39fad434ad4819f4feb6e9d69df48067181
tree691689ef35b1a73483e13894c3f5a6dd21e853d4
parenta6df7644b67f1a9aacff153d365acaf3e95afcf2
kv_flat_btree_async.cc: fix AioCompletion resource leak

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

CID 727979 (#1-2 of 2): Resource leak (RESOURCE_LEAK)
  leaked_storage: Variable "a" 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