a7d3f6
commit 984c0ea97f649c869130a1ff099098e2b6f70aad
a7d3f6
Author: Tim Lammens <tim.lammens@gmail.com>
a7d3f6
Date:   Thu Sep 11 10:35:54 2014 +0530
a7d3f6
a7d3f6
    Fix memory leak in libio/wfileops.c do_ftell_wide [BZ #17370]
a7d3f6
a7d3f6
diff --git a/libio/wfileops.c b/libio/wfileops.c
a7d3f6
index f123add..ebc06e8 100644
a7d3f6
--- a/libio/wfileops.c
a7d3f6
+++ b/libio/wfileops.c
a7d3f6
@@ -711,6 +711,7 @@ do_ftell_wide (_IO_FILE *fp)
a7d3f6
 		return WEOF;
a7d3f6
 
a7d3f6
 	      offset += outstop - out;
a7d3f6
+	      free (out);
a7d3f6
 	    }
a7d3f6
 
a7d3f6
 	  /* We don't trust _IO_read_end to represent the current file offset