diff options
author | Paul Smith <psmith@gnu.org> | 2014-04-25 17:38:08 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2014-07-07 01:59:03 -0400 |
commit | 423c3955d97dc84986be08ed0074d8eb58c624ef (patch) | |
tree | 1a8e0f15f0dc8d22ed7c2472c87fc71ea1434e0c /w32/subproc | |
parent | ac67346d0fb5e5ea359d34c2c9215bd1892455f3 (diff) | |
download | gunmake-423c3955d97dc84986be08ed0074d8eb58c624ef.tar.gz |
* various: Assume ISO C89-compliant free() implementation.
Diffstat (limited to 'w32/subproc')
-rw-r--r-- | w32/subproc/sub_proc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/w32/subproc/sub_proc.c b/w32/subproc/sub_proc.c index 34cc85d..88749da 100644 --- a/w32/subproc/sub_proc.c +++ b/w32/subproc/sub_proc.c @@ -767,7 +767,7 @@ process_begin( startInfo.hStdError = (HANDLE)pproc->sv_stderr[1]; if (as_user) { - if (envblk) free(envblk); + free(envblk); return -1; } else { DB (DB_JOBS, ("CreateProcess(%s,%s,...)\n", @@ -789,7 +789,7 @@ process_begin( pproc->lerrno = E_FORK; fprintf(stderr, "process_begin: CreateProcess(%s, %s, ...) failed.\n", exec_path ? exec_path : "NULL", command_line); - if (envblk) free(envblk); + free(envblk); free( command_line ); return(-1); } @@ -811,7 +811,7 @@ process_begin( pproc->sv_stderr[1] = 0; free( command_line ); - if (envblk) free(envblk); + free(envblk); pproc->lerrno=0; return 0; } @@ -1320,7 +1320,7 @@ make_command_line( char *shell_name, char *full_exec_path, char **argv) command_line = (char*) malloc(bytes_required); if (!command_line) { - if (enclose_in_quotes) free(enclose_in_quotes); + free(enclose_in_quotes); return NULL; } @@ -1413,7 +1413,7 @@ make_command_line( char *shell_name, char *full_exec_path, char **argv) */ *command_line_i = '\0'; - if (enclose_in_quotes) free(enclose_in_quotes); + free(enclose_in_quotes); return command_line; } |