]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: AioCompletion incorrectly freed 4566/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 27 Apr 2015 07:43:10 +0000 (03:43 -0400)
committerLoic Dachary <ldachary@redhat.com>
Wed, 6 May 2015 09:48:39 +0000 (11:48 +0200)
The AioCompletion should be released instead of directly
deleted.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 387a09eeeaf0b66b3a2ddc36388da27d5804a4c7)

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();