X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=src%2Flaunch.c;h=e0ad165fc30ceb38b77cb2ff2a1c21c541f6dd83;hb=8ea62c8d7f3f7f7e4057b93105cf979271aa13f4;hp=287cc4022b51780ce964e6f4bca98d122b396259;hpb=6d15d4e7c27477507ba355384a340ce86cec617b;p=libguestfs.git diff --git a/src/launch.c b/src/launch.c index 287cc40..e0ad165 100644 --- a/src/launch.c +++ b/src/launch.c @@ -61,9 +61,7 @@ #include #include -#include "c-ctype.h" #include "glthread/lock.h" -#include "ignore-value.h" #include "guestfs.h" #include "guestfs-internal.h" @@ -513,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). @@ -764,7 +764,7 @@ test_qemu (guestfs_h *g) goto error; snprintf (cmd, sizeof cmd, "LC_ALL=C '%s' -nographic -version 2>/dev/null", - g->qemu); + g->qemu); fp = popen (cmd, "r"); if (fp) {