From: Jason Dillaman Date: Mon, 27 Apr 2015 07:43:10 +0000 (-0400) Subject: tests: AioCompletion incorrectly freed X-Git-Tag: v0.94.2~16^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F4566%2Fhead;p=ceph.git tests: AioCompletion incorrectly freed The AioCompletion should be released instead of directly deleted. Signed-off-by: Jason Dillaman (cherry picked from commit 387a09eeeaf0b66b3a2ddc36388da27d5804a4c7) --- diff --git a/src/test/librbd/test_ImageWatcher.cc b/src/test/librbd/test_ImageWatcher.cc index ed514946c82a..b73bc7b00209 100644 --- a/src/test/librbd/test_ImageWatcher.cc +++ b/src/test/librbd/test_ImageWatcher.cc @@ -180,7 +180,7 @@ public: } m_aio_completions.erase(aio_completion); - delete aio_completion; + aio_completion->release(); } m_callback_cond.Signal();