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