diff options
author | Guy Harris <guy@alum.mit.edu> | 2006-04-03 01:58:43 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2006-04-03 01:58:43 +0000 |
commit | 813af87c8331e18a434253db4833cf12e2e597d0 (patch) | |
tree | 5f2ceec0580084fcf65125b12ba5bb70b2ed40f8 /capture_sync.c | |
parent | d26000302681fde598974116f0512c5bbb7ea72c (diff) |
Clean up if CreateProcess() fails.
svn path=/trunk/; revision=17790
Diffstat (limited to 'capture_sync.c')
-rw-r--r-- | capture_sync.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/capture_sync.c b/capture_sync.c index 2aa50625fd..cd2c8d8452 100644 --- a/capture_sync.c +++ b/capture_sync.c @@ -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; |