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:
6d7d645
)
valgrind: guestfish -i: free strings before exit.
author
Richard W.M. Jones
<rjones@redhat.com>
Wed, 19 Oct 2011 12:42:59 +0000
(13:42 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Wed, 19 Oct 2011 13:05:21 +0000
(14:05 +0100)
This isn't really necessary, but it keeps valgrind happy.
fish/inspect.c
patch
|
blob
|
history
diff --git
a/fish/inspect.c
b/fish/inspect.c
index
07af818
..
2ca54d2
100644
(file)
--- a/
fish/inspect.c
+++ b/
fish/inspect.c
@@
-88,12
+88,14
@@
inspect_mount (void)
if (roots[0] == NULL) {
fprintf (stderr, _("%s: no operating system was found on this disk\n"),
program_name);
+ free_strings (roots);
exit (EXIT_FAILURE);
}
if (roots[1] != NULL) {
fprintf (stderr, _("%s: multi-boot operating systems are not supported by the -i option\n"),
program_name);
+ free_strings (roots);
exit (EXIT_FAILURE);
}