w32: Fix previous commit.
* src/w32-io.c (_gpgme_io_spawn): Move freeing of TMP_NAME behind its use in an error handling. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
7a1b58045f
commit
9eef23fcf3
@ -1678,9 +1678,6 @@ _gpgme_io_spawn (const char *path, char *const argv[], unsigned int flags,
|
|||||||
return TRACE_SYSRES (-1);
|
return TRACE_SYSRES (-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
free (tmp_name);
|
|
||||||
free (arg_string);
|
|
||||||
|
|
||||||
if (flags & IOSPAWN_FLAG_ALLOW_SET_FG)
|
if (flags & IOSPAWN_FLAG_ALLOW_SET_FG)
|
||||||
_gpgme_allow_set_foreground_window ((pid_t)pi.dwProcessId);
|
_gpgme_allow_set_foreground_window ((pid_t)pi.dwProcessId);
|
||||||
|
|
||||||
@ -1763,6 +1760,8 @@ _gpgme_io_spawn (const char *path, char *const argv[], unsigned int flags,
|
|||||||
(hopefully). */
|
(hopefully). */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
free (tmp_name);
|
||||||
|
free (arg_string);
|
||||||
|
|
||||||
TRACE_LOG4 ("CreateProcess ready: hProcess=%p, hThread=%p, "
|
TRACE_LOG4 ("CreateProcess ready: hProcess=%p, hThread=%p, "
|
||||||
"dwProcessID=%d, dwThreadId=%d",
|
"dwProcessID=%d, dwThreadId=%d",
|
||||||
|
Loading…
Reference in New Issue
Block a user