* spawn.cc (spawn_guts): Fix potential handle leak when failing exec.
This commit is contained in:
parent
e1bfb483ea
commit
e7a9c71d62
|
@ -1,3 +1,7 @@
|
||||||
|
2006-01-27 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
|
* spawn.cc (spawn_guts): Fix potential handle leak when failing exec.
|
||||||
|
|
||||||
2006-01-27 Christopher Faylor <cgf@timesys.com>
|
2006-01-27 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
* exceptions.cc (inside_kernel): Fix to return true if we can't get the
|
* exceptions.cc (inside_kernel): Fix to return true if we can't get the
|
||||||
|
|
|
@ -731,6 +731,7 @@ spawn_guts (const char * prog_arg, const char *const *argv,
|
||||||
myself->exec_sendsig = NULL;
|
myself->exec_sendsig = NULL;
|
||||||
}
|
}
|
||||||
res = -1;
|
res = -1;
|
||||||
|
if (moreinfo->myself_pinfo)
|
||||||
CloseHandle (moreinfo->myself_pinfo);
|
CloseHandle (moreinfo->myself_pinfo);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue