From e68fb7409cd78d5d0cf34c3a8508c849179f61bf Mon Sep 17 00:00:00 2001 From: Mykola Golub Date: Mon, 23 Oct 2017 12:34:19 +0300 Subject: [PATCH] test/librbd: memory leak in recently added test Signed-off-by: Mykola Golub --- src/test/librbd/operation/test_mock_TrimRequest.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/librbd/operation/test_mock_TrimRequest.cc b/src/test/librbd/operation/test_mock_TrimRequest.cc index 7a8cb43e80cf..8eaac7f6a596 100644 --- a/src/test/librbd/operation/test_mock_TrimRequest.cc +++ b/src/test/librbd/operation/test_mock_TrimRequest.cc @@ -53,6 +53,7 @@ struct AsyncRequest { void async_complete(int r) { on_finish->complete(r); + delete this; } bool is_canceled() const { -- 2.47.3