]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test/librados/aio.cc: silence coverity with scope_guard
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 30 May 2017 10:31:19 +0000 (12:31 +0200)
committerKefu Chai <kchai@redhat.com>
Sat, 2 Sep 2017 04:27:16 +0000 (12:27 +0800)
commitf43b1f49d1ccdbd669d3dcc52f3f53a236c624e8
tree428e02e4bdc8020432faebe5e4d7ec5dec259c1b
parent8162d65e27f1e9a4761e8f20151616010b64efcc
test/librados/aio.cc: silence coverity with scope_guard

Fix for:

CID 1313405 (#1 of 1): Resource leak (RESOURCE_LEAK)
 leaked_storage: Variable my_completion2 going out of scope
 leaks the storage it points to.

CID 1219522 (#1 of 1): Resource leak (RESOURCE_LEAK)
 leaked_storage: Variable my_completion going out of scope
 leaks the storage it points to.

CID 1219501 (#1 of 1): Resource leak (RESOURCE_LEAK)
 leaked_storage: Variable my_completion going out of scope
 leaks the storage it points to.

CID 1313406 (#1 of 1): Resource leak (RESOURCE_LEAK)
 leaked_storage: Variable my_completion2 going out of scope
 leaks the storage it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/test/librados/aio.cc