From 893ffd3767678ab881c4bc44ecfe1801cb9f9704 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Mon, 27 Apr 2015 03:43:10 -0400 Subject: [PATCH] tests: AioCompletion incorrectly freed The AioCompletion should be released instead of directly deleted. Signed-off-by: Jason Dillaman (cherry picked from commit 387a09eeeaf0b66b3a2ddc36388da27d5804a4c7) --- src/test/librbd/test_ImageWatcher.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/librbd/test_ImageWatcher.cc b/src/test/librbd/test_ImageWatcher.cc index ed514946c82a5..b73bc7b002091 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(); -- 2.39.5