X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=fish%2Ffish.c;h=1bc84471c157320237086c51ca0ef129fa411f91;hb=0cd5b9ac15c62eb570ec74d19b4aebde4990fd82;hp=efc74b26571eb191d2ca448b96e588b02d06f509;hpb=319e946b92e175c05cdd1fdcb85c9b86f5631011;p=libguestfs.git diff --git a/fish/fish.c b/fish/fish.c index efc74b2..1bc8447 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -995,7 +995,7 @@ execute_and_inline (const char *cmd, int global_exit_on_error) free (line); - if (pclose (pp) == -1) { + if (pclose (pp) != 0) { perror ("pclose"); return -1; } @@ -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; }