[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 5/7] vhost-user-test: fix leaks
From: |
Thomas Huth |
Subject: |
[Qemu-devel] [PULL 5/7] vhost-user-test: fix leaks |
Date: |
Fri, 8 Mar 2019 10:18:41 +0100 |
From: Marc-André Lureau <address@hidden>
Spotted by ASAN.
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Thomas Huth <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Stefano Garzarella <address@hidden>
Fixes: ae31fb54914 and 4d3f50eb489
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Signed-off-by: Thomas Huth <address@hidden>
---
tests/vhost-user-test.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/vhost-user-test.c b/tests/vhost-user-test.c
index 83ea15f..14a1e2f 100644
--- a/tests/vhost-user-test.c
+++ b/tests/vhost-user-test.c
@@ -588,6 +588,7 @@ static void test_server_free(TestServer *server)
g_test_message("unable to rmdir: path (%s): %s",
server->tmpfs, strerror(errno));
}
+ g_free(server->tmpfs);
qemu_chr_fe_deinit(&server->chr, true);
@@ -605,6 +606,8 @@ static void test_server_free(TestServer *server)
g_main_loop_unref(server->loop);
g_main_context_unref(server->context);
+ g_cond_clear(&server->data_cond);
+ g_mutex_clear(&server->data_mutex);
g_free(server);
}
--
1.8.3.1
- [Qemu-devel] [PULL 0/7] qtests, clean-ups and macOS CI testing, Thomas Huth, 2019/03/08
- [Qemu-devel] [PULL 1/7] tests: Move qdict-test-data.txt to tests/data/qobject/, Thomas Huth, 2019/03/08
- [Qemu-devel] [PULL 3/7] hw/devices: Remove unused TC6393XB_RAM definition, Thomas Huth, 2019/03/08
- [Qemu-devel] [PULL 2/7] hw: Remove unused 'hw/devices.h' include, Thomas Huth, 2019/03/08
- [Qemu-devel] [PULL 4/7] tests: Do not use "\n" in g_test_message() strings, Thomas Huth, 2019/03/08
- [Qemu-devel] [PULL 5/7] vhost-user-test: fix leaks,
Thomas Huth <=
- [Qemu-devel] [PULL 6/7] tests/bios-tables: Improve portability by searching bash in the $PATH, Thomas Huth, 2019/03/08
- [Qemu-devel] [PULL 7/7] cirrus.yml: Add macOS continuous integration task, Thomas Huth, 2019/03/08
- Re: [Qemu-devel] [PULL 0/7] qtests, clean-ups and macOS CI testing, Peter Maydell, 2019/03/08