tests: fix e1000-test leak
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Sun, 5 Feb 2017 21:02:40 +0000 (21:02 +0000)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 1 Mar 2017 07:51:28 +0000 (11:51 +0400)
Spotted by ASAN.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
tests/e1000-test.c

index 59cab68a60a12954dbf32f817908ab9d72be238d..0c5fcdcc4478f060664028eef5d74583b5f4973e 100644 (file)
@@ -44,6 +44,7 @@ int main(int argc, char **argv)
 
         path = g_strdup_printf("e1000/%s", models[i]);
         qtest_add_data_func(path, models[i], test_device);
+        g_free(path);
     }
 
     return g_test_run();