]> sourceware.org Git - newlib-cygwin.git/commitdiff
* libc/posix/wordexp.c (wordexp): Don't leak file streams.
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 9 Oct 2012 09:09:20 +0000 (09:09 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 9 Oct 2012 09:09:20 +0000 (09:09 +0000)
newlib/ChangeLog
newlib/libc/posix/wordexp.c

index 6e3348d204ee5b7cf6c608f3144b0c1ab3ca1ceb..5357d527343d4b4e1edf68f8fa86a41037de7511 100644 (file)
@@ -1,3 +1,7 @@
+2012-10-09  Peter Rosin  <peda@lysator.liu.se>
+
+       * libc/posix/wordexp.c (wordexp): Don't leak file streams.
+
 2012-10-03  DJ Delorie  <dj@redhat.com>
 
        * libc/machine/rl78/setjmp.S: Convert from CPP macros to GAS
index bfdb63fd0077004704fb37b427719bcfdd0aad1c..a5a97dbdda340dce709cfd6d40a82e8c393d8a96 100644 (file)
@@ -143,8 +143,8 @@ wordexp(const char *words, wordexp_t *pwordexp, int flags)
       pwordexp->we_wordv[pwordexp->we_wordc + offs + i] = NULL;
       pwordexp->we_wordc += num_words;
 
-      close(fd[0]);
-      close(fd_err[0]);
+      fclose(f);
+      fclose(f_err);
 
       /* Wait for child to finish. */
       waitpid (pid, NULL, 0);
This page took 0.052483 seconds and 5 git commands to generate.