summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/syscalls.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-09-10 16:22:49 +0000
committerChristopher Faylor <me@cgf.cx>2003-09-10 16:22:49 +0000
commit4018776f6e72a2e612eab9e4fc975ad293d70bc5 (patch)
tree92b38ad66f6c6a3fe13e66bfc2888e0fbe4b07be /winsup/cygwin/syscalls.cc
parent080ef411359ffe4c8b5f03ab5fce9da900e40381 (diff)
downloadcygnal-4018776f6e72a2e612eab9e4fc975ad293d70bc5.tar.gz
cygnal-4018776f6e72a2e612eab9e4fc975ad293d70bc5.tar.bz2
cygnal-4018776f6e72a2e612eab9e4fc975ad293d70bc5.zip
* Makefile.in: Add some more -fomit-frame-pointer files.
* path.cc (conv_path_list_buf_size): Free normalized_path or suffer memory leak. * syscalls.cc (chroot): Ditto.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r--winsup/cygwin/syscalls.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index 753712126..0880c3f72 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -2373,6 +2373,8 @@ chroot (const char *newroot)
syscall_printf ("%d = chroot (%s)", ret ? get_errno () : 0,
newroot ? newroot : "NULL");
+ if (path.normalized_path)
+ cfree (path.normalized_path);
return ret;
}