diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-10-19 13:42:59 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-10-19 14:05:21 +0100 |
commit | 2f6ec8b4da27c550e2c7187fd17df28f1bdd51a7 (patch) | |
tree | 7f42c12d874c3a649a465071d0bc24114e872ac5 | |
parent | 6d7d645cdd4a9c94c4d95fc52de53c37b88847e4 (diff) | |
download | libguestfs-2f6ec8b4da27c550e2c7187fd17df28f1bdd51a7.tar.gz libguestfs-2f6ec8b4da27c550e2c7187fd17df28f1bdd51a7.tar.xz libguestfs-2f6ec8b4da27c550e2c7187fd17df28f1bdd51a7.zip |
valgrind: guestfish -i: free strings before exit.
This isn't really necessary, but it keeps valgrind happy.
-rw-r--r-- | fish/inspect.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fish/inspect.c b/fish/inspect.c index 07af8188..2ca54d22 100644 --- 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); } |