]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/librbd: memory leak in recently added test 18478/head
authorMykola Golub <to.my.trociny@gmail.com>
Mon, 23 Oct 2017 09:34:19 +0000 (12:34 +0300)
committerMykola Golub <to.my.trociny@gmail.com>
Mon, 23 Oct 2017 09:34:19 +0000 (12:34 +0300)
Signed-off-by: Mykola Golub <to.my.trociny@gmail.com>
src/test/librbd/operation/test_mock_TrimRequest.cc

index 7a8cb43e80cfbb22193e47531e2e9166344703ad..8eaac7f6a596d3e453ab7ba4906e3ab39e162f97 100644 (file)
@@ -53,6 +53,7 @@ struct AsyncRequest<librbd::MockTestImageCtx> {
 
   void async_complete(int r) {
     on_finish->complete(r);
+    delete this;
   }
 
   bool is_canceled() const {