qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] vhost-user-test: fix a memory leak
@ 2019-12-11  0:55 pannengyuan
  2019-12-11  7:48 ` Laurent Vivier
  2019-12-11  7:57 ` Thomas Huth
  0 siblings, 2 replies; 7+ messages in thread
From: pannengyuan @ 2019-12-11  0:55 UTC (permalink / raw)
  To: thuth, lvivier, pbonzini; +Cc: Pan Nengyuan, zhang.zhanghailiang, qemu-devel

From: Pan Nengyuan <pannengyuan@huawei.com>

Spotted by ASAN.

Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Pan Nengyuan <pannengyuan@huawei.com>
---
 tests/vhost-user-test.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/vhost-user-test.c b/tests/vhost-user-test.c
index 91ea373..54be931 100644
--- a/tests/vhost-user-test.c
+++ b/tests/vhost-user-test.c
@@ -717,6 +717,8 @@ static void test_migrate(void *obj, void *arg, QGuestAllocator *alloc)
     guint64 size;
 
     if (!wait_for_fds(s)) {
+        g_free(uri);
+        test_server_free(dest);
         return;
     }
 
-- 
2.7.2.windows.1




^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-12-12  1:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-11  0:55 [PATCH] vhost-user-test: fix a memory leak pannengyuan
2019-12-11  7:48 ` Laurent Vivier
2019-12-12  1:11   ` Pan Nengyuan
2019-12-11  7:57 ` Thomas Huth
2019-12-11  8:18   ` Marc-André Lureau
2019-12-12  1:48     ` Pan Nengyuan
2019-12-12  1:41   ` Pan Nengyuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).