[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] vhost-user-test: fix a memory leak
From: |
pannengyuan |
Subject: |
[PATCH] vhost-user-test: fix a memory leak |
Date: |
Wed, 11 Dec 2019 08:55:22 +0800 |
From: Pan Nengyuan <address@hidden>
Spotted by ASAN.
Reported-by: Euler Robot <address@hidden>
Signed-off-by: Pan Nengyuan <address@hidden>
---
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
- [PATCH] vhost-user-test: fix a memory leak,
pannengyuan <=