]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test_rados_watch_notify: Fix trivial memory leaks 12713/head
authorBrad Hubbard <bhubbard@redhat.com>
Thu, 29 Dec 2016 22:56:36 +0000 (08:56 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Thu, 29 Dec 2016 22:56:36 +0000 (08:56 +1000)
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
src/test/librados/watch_notify.cc

index 07370c974106d14f18a1fdb4e4454f8bfe8d9ceb..ce54f4778d6d8a48d2bf9dc0796f340a661e703a 100644 (file)
@@ -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);
 
 }