X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=fish%2Ffish.c;h=71153eb60463914fc165801e04ca3fc6b9b77c61;hb=6b68c17e07a57d7aec9adc778f41b4c772a235bd;hp=923c6dde0d94d31203384edc7ebcaa96182ba2ca;hpb=7bd228bda96f37c39f112c2315d3ca29354c0ba3;p=libguestfs.git diff --git a/fish/fish.c b/fish/fish.c index 923c6dd..71153eb 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -878,7 +878,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; } @@ -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; }