]> sourceware.org Git - glibc.git/commitdiff
Fix memory leak in libio/wfileops.c do_ftell_wide [BZ #17370]
authorTim Lammens <tim.lammens@gmail.com>
Thu, 11 Sep 2014 05:05:54 +0000 (10:35 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Thu, 11 Sep 2014 05:14:02 +0000 (10:44 +0530)
ChangeLog
NEWS
libio/wfileops.c

index 20eb3b312e94d25316ccecd828a540183eff6f05..0377062999ece4f9c6a60a4c0cb880a198eaf433 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
+
+       [BZ #17370]
+       * libio/wfileops (do_ftell_wide): Free OUT.
+
 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
 
        * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
diff --git a/NEWS b/NEWS
index 40e2497eff513679c11d0cf3dd101cca3121f702..c607d12485857436f69d743a84c197c4be16dad7 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -9,7 +9,7 @@ Version 2.21
 
 * The following bugs are resolved with this release:
 
-  17363.
+  17363, 17370.
 \f
 Version 2.20
 
index f123add354f5326a47e9aec66412e879047f7d61..ebc06e85de33a594c9c426526f7a04730d358e0b 100644 (file)
@@ -711,6 +711,7 @@ do_ftell_wide (_IO_FILE *fp)
                return WEOF;
 
              offset += outstop - out;
+             free (out);
            }
 
          /* We don't trust _IO_read_end to represent the current file offset
This page took 0.118732 seconds and 5 git commands to generate.