From 6d276dae8d1bbb54d8708c94d23879d39f5fd4a3 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 21 Sep 2010 19:37:24 +0100 Subject: [PATCH] leak: Appliance name was leaked during guestfs_launch. This frees the string containing the name of the appliance which was previously being leaked during launch. (Found by valgrind). --- src/launch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/launch.c b/src/launch.c index 8bc96fd..e0ad165 100644 --- a/src/launch.c +++ b/src/launch.c @@ -511,6 +511,8 @@ guestfs__launch (guestfs_h *g) kernel = NULL; free (initrd); initrd = NULL; + free (appliance); + appliance = NULL; /* Fork the recovery process off which will kill qemu if the parent * process fails to do so (eg. if the parent segfaults). -- 1.8.3.1