]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test: potential memory leak in FlushAioPP 5280/head
authorZhiqiang Wang <zhiqiang.wang@intel.com>
Fri, 20 Mar 2015 08:15:42 +0000 (16:15 +0800)
committerJason Dillaman <dillaman@redhat.com>
Fri, 17 Jul 2015 18:17:04 +0000 (14:17 -0400)
commitf99f3125ff76628e2525dca00bb7b983f941a08b
tree3c348e73556046b734e131b5daca60f49e4006ed
parenta4fc63af630e77586e3ba2f17df3b6be4a1e2055
test: potential memory leak in FlushAioPP

Should call the release function instead of deleting it to free
librbd::RBD::AioCompletion and librbd::AioCompletion. Otherwise there is
a potential memory leak.

Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
(cherry picked from commit ada7ec860cb7901c560c12a5af36dc7c23051b76)
src/test/librbd/test_librbd.cc