Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-09-13 23:57:00 +0400
committerChristopher Faylor <me@cgf.cx>2000-09-13 23:57:00 +0400
commit99d7d12af0bd6e08312a3c9c41b507d68d9c9662 (patch)
tree36f9100565e3ab82c694826daf202559900373ba /winsup/cygwin/child_info.h
parent7f18fcb4cb412959bde4eba2718ee59cf4ad928f (diff)
* spawn.cc (av): Hide 'calloced' field and limit cstrduping to class methods
only. (spawn_guts): Use methods for manipulating most newargv stuff. * child_info.h (child_info_spawn::~child_info_spawn): Avoid memory leaks in cygheap. * spawn.cc (spawn_guts): Ditto. * dcrt0.cc (quoted): Return next character after a quoted string when not doing special quote processing. Also ensure that non-NULL is returned in all circumstances. * spawn.cc (spawn_guts): Ensure that argv[0] is correctly set to the full path when a script is detected. Suggested by Kazuhiro Fujieda <fujieda@jaist.ac.jp>.
Diffstat (limited to 'winsup/cygwin/child_info.h')
-rw-r--r--winsup/cygwin/child_info.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/winsup/cygwin/child_info.h b/winsup/cygwin/child_info.h
index 8e76ca399..afea34b02 100644
--- a/winsup/cygwin/child_info.h
+++ b/winsup/cygwin/child_info.h
@@ -87,6 +87,10 @@ public:
{
if (moreinfo->old_title)
cfree (moreinfo->old_title);
+ if (moreinfo->cwd_posix)
+ cfree (moreinfo->cwd_posix);
+ if (moreinfo->cwd_win32)
+ cfree (moreinfo->cwd_win32);
if (moreinfo->environ)
{
for (char **e = moreinfo->environ; *e; e++)