aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2017-02-05 21:02:40 +0000
committerMarc-André Lureau <marcandre.lureau@redhat.com>2017-03-01 11:51:28 +0400
commit8829e16f5ef7034ab730370ba34ce2c835da17c4 (patch)
treed02040ebbe5a730628fd774f568fa912679102e0 /tests
parent34779e8c3991f7fcd74b2045478abcef67dbeb15 (diff)
downloadqemu-8829e16f5ef7034ab730370ba34ce2c835da17c4.zip
qemu-8829e16f5ef7034ab730370ba34ce2c835da17c4.tar.gz
qemu-8829e16f5ef7034ab730370ba34ce2c835da17c4.tar.bz2
tests: fix e1000-test leak
Spotted by ASAN. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/e1000-test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/e1000-test.c b/tests/e1000-test.c
index 59cab68..0c5fcdc 100644
--- a/tests/e1000-test.c
+++ b/tests/e1000-test.c
@@ -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();