projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34779e8
)
tests: fix e1000-test leak
author
Marc-André Lureau
<marcandre.lureau@redhat.com>
Sun, 5 Feb 2017 21:02:40 +0000
(21:02 +0000)
committer
Marc-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
patch
|
blob
|
history
diff --git
a/tests/e1000-test.c
b/tests/e1000-test.c
index 59cab68a60a12954dbf32f817908ab9d72be238d..0c5fcdcc4478f060664028eef5d74583b5f4973e 100644
(file)
--- 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();