From: Mykola Golub Date: Mon, 23 Oct 2017 09:34:19 +0000 (+0300) Subject: test/librbd: memory leak in recently added test X-Git-Tag: v13.0.1~470^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F18478%2Fhead;p=ceph.git test/librbd: memory leak in recently added test Signed-off-by: Mykola Golub --- diff --git a/src/test/librbd/operation/test_mock_TrimRequest.cc b/src/test/librbd/operation/test_mock_TrimRequest.cc index 7a8cb43e80c..8eaac7f6a59 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 {