From: Brad Hubbard Date: Thu, 29 Dec 2016 22:56:36 +0000 (+1000) Subject: test_rados_watch_notify: Fix trivial memory leaks X-Git-Tag: v12.0.0~320^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=08be44aec8de25aa9970ace4778943624c896c4e;p=ceph.git test_rados_watch_notify: Fix trivial memory leaks Signed-off-by: Brad Hubbard --- diff --git a/src/test/librados/watch_notify.cc b/src/test/librados/watch_notify.cc index 07370c97410..ce54f4778d6 100644 --- a/src/test/librados/watch_notify.cc +++ b/src/test/librados/watch_notify.cc @@ -362,6 +362,7 @@ TEST_F(LibRadosWatchNotify, Watch2Timeout) { ASSERT_EQ(1u, notify_cookies.size()); ASSERT_GT(rados_watch_check(ioctx, handle), 0); + rados_buffer_free(reply_buf); rados_unwatch2(ioctx, handle); } @@ -732,6 +733,7 @@ TEST_F(LibRadosWatchNotify, WatchNotify2Timeout) { ASSERT_EQ(0, rados_aio_wait_for_complete(comp)); ASSERT_EQ(0, rados_aio_get_return_value(comp)); rados_aio_release(comp); + rados_buffer_free(reply_buf); }