From: Richard W.M. Jones Date: Wed, 19 Oct 2011 12:42:59 +0000 (+0100) Subject: valgrind: guestfish -i: free strings before exit. X-Git-Tag: 1.12.8~5 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=005eff3940efc1bee4250ad8af1c2231ab9d99f9;p=libguestfs.git valgrind: guestfish -i: free strings before exit. This isn't really necessary, but it keeps valgrind happy. (cherry picked from commit 2f6ec8b4da27c550e2c7187fd17df28f1bdd51a7) --- diff --git a/fish/inspect.c b/fish/inspect.c index 07af818..2ca54d2 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); }