Clean up if CreateProcess() fails.

svn path=/trunk/; revision=17790
This commit is contained in:
Guy Harris 2006-04-03 01:58:43 +00:00
parent d260003026
commit 813af87c83
1 changed files with 3 additions and 0 deletions

View File

@ -410,6 +410,9 @@ sync_pipe_start(capture_options *capture_opts) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
"Couldn't run %s in child process: error %u",
args->str, GetLastError());
CloseHandle(sync_pipe_read);
CloseHandle(sync_pipe_write);
g_free( (gpointer) argv);
return FALSE;
}
capture_opts->fork_child = (int) pi.hProcess;