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

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

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