diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2015-08-06 14:09:58 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2015-08-06 14:09:58 +0000 |
commit | 7834d34636db11b518444dd9ef005f42f6f1cb14 (patch) | |
tree | 457f676d4af7b0657f232f205ad62c54f39b20d2 /local.c | |
parent | Update ChangeLog (diff) | |
parent | Strnew_charp and co do not modify the char* input (diff) | |
download | w3m-7834d34636db11b518444dd9ef005f42f6f1cb14.tar.gz w3m-7834d34636db11b518444dd9ef005f42f6f1cb14.zip |
Merge pull request #6 from richq/static-checks
Static checks
Diffstat (limited to 'local.c')
-rw-r--r-- | local.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -386,9 +386,11 @@ localcgi_post(char *uri, char *qstr, FormList *request, char *referer) cgi_basename = mybasename(file); pid = open_pipe_rw(&fr, NULL); /* Don't invoke gc after here, or the program might crash in some platforms */ - if (pid < 0) + if (pid < 0) { + if (fw) + fclose(fw); return NULL; - else if (pid) { + } else if (pid) { if (fw) fclose(fw); return fr; |