]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test: potential memory leak in FlushAioPP
authorZhiqiang Wang <zhiqiang.wang@intel.com>
Fri, 20 Mar 2015 08:15:42 +0000 (16:15 +0800)
committerZhiqiang Wang <zhiqiang.wang@intel.com>
Mon, 23 Mar 2015 03:26:07 +0000 (11:26 +0800)
commitada7ec860cb7901c560c12a5af36dc7c23051b76
tree3ac55438dc9c74aaa68ccdc28a21df1f38974e00
parent865b1e6f22193523c90ca5f5ec78e3e3da1b146b
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>
src/test/librbd/test_librbd.cc