]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
tests: fix eepro100-test leak
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Sun, 5 Feb 2017 20:07:30 +0000 (20:07 +0000)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 1 Mar 2017 07:51:05 +0000 (11:51 +0400)
Spotted by ASAN.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
tests/eepro100-test.c

index ed23258b0f515044c9da7960f356f8d9284c79d1..bdc8a67d570f6f16eec6f94049a96f0b9c5112f2 100644 (file)
@@ -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();