git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08e77ad
)
qemu detection: Free up previous qemu help/version strings if they exist.
author
Richard W.M. Jones
<rjones@redhat.com>
Tue, 23 Aug 2011 17:43:24 +0000
(18:43 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Tue, 23 Aug 2011 17:43:24 +0000
(18:43 +0100)
src/launch.c
patch
|
blob
|
history
diff --git
a/src/launch.c
b/src/launch.c
index
db76885
..
cb0f637
100644
(file)
--- a/
src/launch.c
+++ b/
src/launch.c
@@
-1071,6
+1071,11
@@
test_qemu (guestfs_h *g)
char cmd[1024];
FILE *fp;
+ free (g->qemu_help);
+ g->qemu_help = NULL;
+ free (g->qemu_version);
+ g->qemu_version = NULL;
+
snprintf (cmd, sizeof cmd, "LC_ALL=C '%s' -nographic -help", g->qemu);
/* qemu -help should always work (qemu -version OTOH wasn't