diff options
Diffstat (limited to 'winsup/cygwin/child_info.h')
-rw-r--r-- | winsup/cygwin/child_info.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/child_info.h b/winsup/cygwin/child_info.h index 41abe00f6..47afc506a 100644 --- a/winsup/cygwin/child_info.h +++ b/winsup/cygwin/child_info.h @@ -125,7 +125,7 @@ public: cfree (*e); cfree (moreinfo->envp); } - if (type != _PROC_SPAWN) + if (type != _PROC_SPAWN && moreinfo->myself_pinfo) CloseHandle (moreinfo->myself_pinfo); cfree (moreinfo); } |