]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "test_filejournal.cc: cleanup memory in destructor"
authorSamuel Just <sam.just@inktank.com>
Thu, 16 May 2013 19:49:35 +0000 (12:49 -0700)
committerSamuel Just <sam.just@inktank.com>
Thu, 16 May 2013 22:45:42 +0000 (15:45 -0700)
The finish() method for Contexts calls delete this.

This reverts commit 36028916c4630ea66007760efed8fc6c441e7af5.

Fixes: #5075
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>
src/test/test_filejournal.cc

index 05bd4acb89ec88e7a059283b6a1a550367c0bf8f..7365e97dec0a923f60b4e46c6b6e6667132c6f2f 100644 (file)
@@ -52,8 +52,6 @@ public:
       cond.Wait(lock);
     //cout << "waited" << std::endl;
     lock.Unlock();
-    if (c)
-      delete c;
   }
 };