]> sourceware.org Git - newlib-cygwin.git/commit
* libc/posix/wordfree.c (wordfree): The wrong words are freed
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 9 Oct 2012 12:05:51 +0000 (12:05 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 9 Oct 2012 12:05:51 +0000 (12:05 +0000)
commit509212aa98c5e38adb67481a079c9a09d3829f44
treeb5cdc614c48c429cb7bd1f595795485d51a44a0a
parent277e7f0e2e6fc9fb533b301fc0627cfe4fd9d1ae
* libc/posix/wordfree.c (wordfree): The wrong words are freed
when WRDE_DOOFFS is in use. Restructure the code so that the memory
needed to be freed is instead kept in an internal linked list...
* libc/posix/wordexp2.h: ...as defined here...
* libc/posix/wordexp.c (wordexp): ...and build this internal
linked list here, avoiding wasteful strdup calls in the process.
newlib/ChangeLog
newlib/libc/posix/wordexp.c
newlib/libc/posix/wordexp2.h [new file with mode: 0644]
newlib/libc/posix/wordfree.c
This page took 0.034178 seconds and 5 git commands to generate.