git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
leak: Free list of drives and mountpoints in guestfish.
[libguestfs.git]
/
src
/
launch.c
diff --git
a/src/launch.c
b/src/launch.c
index
287cc40
..
e0ad165
100644
(file)
--- a/
src/launch.c
+++ b/
src/launch.c
@@
-61,9
+61,7
@@
#include <arpa/inet.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netinet/in.h>
-#include "c-ctype.h"
#include "glthread/lock.h"
#include "glthread/lock.h"
-#include "ignore-value.h"
#include "guestfs.h"
#include "guestfs-internal.h"
#include "guestfs.h"
#include "guestfs-internal.h"
@@
-513,6
+511,8
@@
guestfs__launch (guestfs_h *g)
kernel = NULL;
free (initrd);
initrd = NULL;
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).
/* 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",
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) {
fp = popen (cmd, "r");
if (fp) {