From: Marc-André Lureau Date: Sun, 5 Feb 2017 20:07:30 +0000 (+0000) Subject: tests: fix eepro100-test leak X-Git-Tag: v2.9.0-rc0~42^2~12 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6afff1ffa36909b164847ff276cc9cb575058f4c;p=users%2Fdwmw2%2Fqemu.git tests: fix eepro100-test leak Spotted by ASAN. Signed-off-by: Marc-André Lureau Reviewed-by: Stefan Weil --- diff --git a/tests/eepro100-test.c b/tests/eepro100-test.c index ed23258b0f..bdc8a67d57 100644 --- a/tests/eepro100-test.c +++ b/tests/eepro100-test.c @@ -54,6 +54,7 @@ int main(int argc, char **argv) path = g_strdup_printf("eepro100/%s", models[i]); qtest_add_data_func(path, models[i], test_device); + g_free(path); } return g_test_run();