From: Richard W.M. Jones Date: Tue, 21 Sep 2010 18:37:24 +0000 (+0100) Subject: leak: Appliance name was leaked during guestfs_launch. X-Git-Tag: 1.5.17~7 X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=commitdiff_plain;h=6d276dae8d1bbb54d8708c94d23879d39f5fd4a3;hp=0132890790a082c5d0f31cc64367b4897c8e88b7 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). --- 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).