[Libguestfs] [PATCH 1/2] p2v: Free config struct before exit.
Richard W.M. Jones
rjones at redhat.com
Thu Mar 16 21:57:48 UTC 2017
Memory leak found by valgrind.
---
p2v/main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/p2v/main.c b/p2v/main.c
index e1a7550..7f1e1c0 100644
--- a/p2v/main.c
+++ b/p2v/main.c
@@ -260,6 +260,7 @@ main (int argc, char *argv[])
}
guestfs_int_free_string_list (cmdline);
+ free_config (config);
exit (EXIT_SUCCESS);
}
--
2.10.2
More information about the Libguestfs
mailing list