git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fish: Fix segfault in free_drives() function.
[libguestfs.git]
/
fish
/
fish.c
diff --git
a/fish/fish.c
b/fish/fish.c
index
6192860
..
4379845
100644
(file)
--- a/
fish/fish.c
+++ b/
fish/fish.c
@@
-701,8
+701,8
@@
free_drives (struct drv *drv)
free_drives (drv->next);
switch (drv->type) {
free_drives (drv->next);
switch (drv->type) {
- case drv_a:
free (drv->a.filename);
break;
- case drv_d:
free (drv->d.guest);
break;
+ case drv_a:
/* a.filename is optarg, don't free it */
break;
+ case drv_d:
/* d.filename is optarg, don't free it */
break;
case drv_N:
free (drv->N.filename);
free (drv->N.device);
case drv_N:
free (drv->N.filename);
free (drv->N.device);