From: Richard W.M. Jones Date: Tue, 23 Aug 2011 18:26:35 +0000 (+0100) Subject: Coverity: fix memory leak in guestfish. X-Git-Tag: 1.13.7~4 X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=commitdiff_plain;h=c38cb92ec478c4dca83e4d38963720f463d52314 Coverity: fix memory leak in guestfish. --- diff --git a/fish/fish.c b/fish/fish.c index c132911..1bc8447 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -1370,9 +1370,8 @@ parse_string_list (const char *str) /* We've reached the end of a token. We shouldn't still be in quotes. */ if (in_quote) { fprintf (stderr, _("Runaway quote in string \"%s\"\n"), str); - free_n_strings (argv, argv_len); - + free (tok); return NULL; }