From 99d7d12af0bd6e08312a3c9c41b507d68d9c9662 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 13 Sep 2000 19:57:00 +0000 Subject: * 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 . --- winsup/cygwin/child_info.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'winsup/cygwin/child_info.h') 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++) -- cgit v1.2.3