diff options
author | Christopher Faylor <me@cgf.cx> | 2000-09-13 19:57:00 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-09-13 19:57:00 +0000 |
commit | 99d7d12af0bd6e08312a3c9c41b507d68d9c9662 (patch) | |
tree | 36f9100565e3ab82c694826daf202559900373ba /winsup/cygwin/child_info.h | |
parent | 7f18fcb4cb412959bde4eba2718ee59cf4ad928f (diff) | |
download | cygnal-99d7d12af0bd6e08312a3c9c41b507d68d9c9662.tar.gz cygnal-99d7d12af0bd6e08312a3c9c41b507d68d9c9662.tar.bz2 cygnal-99d7d12af0bd6e08312a3c9c41b507d68d9c9662.zip |
* 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.h | 4 |
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++) |