]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
kv_flat_btree_async.cc: fix AioCompletion resource leak 325/head
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 28 May 2013 10:27:37 +0000 (12:27 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 28 May 2013 10:27:37 +0000 (12:27 +0200)
commit6939b124929057ce315502e60ef45f13625a8496
tree1a920d91a74347713451a3a3c4f6f49f1d325b0c
parenta6df7644b67f1a9aacff153d365acaf3e95afcf2
kv_flat_btree_async.cc: fix AioCompletion resource leak

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

CID 727980 (#1-4 of 4): 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