From 1bfdc3f0b0d486cc2a8da291ab63ed90c2523b2f Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 23 Aug 2011 19:26:35 +0100 Subject: [PATCH] Coverity: fix memory leak in guestfish. (cherry picked from commit c38cb92ec478c4dca83e4d38963720f463d52314) --- fish/fish.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fish/fish.c b/fish/fish.c index 4f1dfc9..71153eb 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -1245,9 +1245,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; } -- 1.8.3.1