mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-23 00:59:51 +08:00
* 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.
This commit is contained in:
parent
080ef41135
commit
4018776f6e
@ -1,3 +1,11 @@
|
|||||||
|
2003-09-10 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2003-09-10 Corinna Vinschen <corinna@vinschen.de>
|
2003-09-10 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* Makefile.in (DLL_OFILES): Add bsdlib.o.
|
* Makefile.in (DLL_OFILES): Add bsdlib.o.
|
||||||
|
@ -73,6 +73,10 @@ fhandler_tty_CFLAGS:=-fomit-frame-pointer
|
|||||||
fhandler_virtual_CFLAGS:=-fomit-frame-pointer
|
fhandler_virtual_CFLAGS:=-fomit-frame-pointer
|
||||||
fhandler_windows_CFLAGS:=-fomit-frame-pointer
|
fhandler_windows_CFLAGS:=-fomit-frame-pointer
|
||||||
fhandler_zero_CFLAGS:=-fomit-frame-pointer
|
fhandler_zero_CFLAGS:=-fomit-frame-pointer
|
||||||
|
regcomp_CFLAGS=-fomit-frame-pointer
|
||||||
|
regerror_CFLAGS=-fomit-frame-pointer
|
||||||
|
regexec_CFLAGS=-fomit-frame-pointer
|
||||||
|
regfree_CFLAGS=-fomit-frame-pointer
|
||||||
|
|
||||||
CC:=@CC@
|
CC:=@CC@
|
||||||
# FIXME: Which is it, CC or CC_FOR_TARGET?
|
# FIXME: Which is it, CC or CC_FOR_TARGET?
|
||||||
|
@ -3653,6 +3653,10 @@ conv_path_list_buf_size (const char *path_list, bool to_posix)
|
|||||||
+ (num_elms * max_mount_path_len)
|
+ (num_elms * max_mount_path_len)
|
||||||
+ (nrel * strlen (to_posix ? pc.normalized_path : pc.get_win32 ()))
|
+ (nrel * strlen (to_posix ? pc.normalized_path : pc.get_win32 ()))
|
||||||
+ 100;
|
+ 100;
|
||||||
|
|
||||||
|
cfree (pc.normalized_path); // FIXME - probably should be in a destructor but
|
||||||
|
// it's hard to justify a destructor for the few
|
||||||
|
// places where this is needed
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2373,6 +2373,8 @@ chroot (const char *newroot)
|
|||||||
|
|
||||||
syscall_printf ("%d = chroot (%s)", ret ? get_errno () : 0,
|
syscall_printf ("%d = chroot (%s)", ret ? get_errno () : 0,
|
||||||
newroot ? newroot : "NULL");
|
newroot ? newroot : "NULL");
|
||||||
|
if (path.normalized_path)
|
||||||
|
cfree (path.normalized_path);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user