]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: AioCompletion incorrectly freed 4472/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 27 Apr 2015 07:43:10 +0000 (03:43 -0400)
committerJason Dillaman <dillaman@redhat.com>
Mon, 27 Apr 2015 07:43:10 +0000 (03:43 -0400)
The AioCompletion should be released instead of directly
deleted.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/test/librbd/test_ImageWatcher.cc

index ed514946c82a5fa2cfffdf8eab7cb86058937680..b73bc7b0020913dba07c32c88edbc029d2f67c6d 100644 (file)
@@ -180,7 +180,7 @@ public:
       }
 
       m_aio_completions.erase(aio_completion);
-      delete aio_completion;
+      aio_completion->release();
     }
 
     m_callback_cond.Signal();