From: Marc-André Lureau Date: Tue, 26 Jul 2016 21:15:21 +0000 (+0400) Subject: tests: fix vhost-user-test leak X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.2~6^2~13^2~6^2~75^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=69179fe2fc0b91f68699012ba72d329e74ff629e;p=sdk%2Femulator%2Fqemu.git tests: fix vhost-user-test leak Spotted by valgrind. Signed-off-by: Marc-André Lureau Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- diff --git a/tests/vhost-user-test.c b/tests/vhost-user-test.c index 46d05881b6..27b10c19b8 100644 --- a/tests/vhost-user-test.c +++ b/tests/vhost-user-test.c @@ -683,6 +683,7 @@ static void test_reconnect(void) qtest_get_arch()); g_test_trap_subprocess(path, 0, 0); g_test_trap_assert_passed(); + g_free(path); } #endif