summarylogtreecommitdiffstats
path: root/glibc-2.20-do_ftell_wide-memleak.patch
blob: 0896a6430dc2c5eae1d895b1e2128814df0127ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/libio/wfileops.c b/libio/wfileops.c
index f123add..ebc06e8 100644
--- a/libio/wfileops.c
+++ b/libio/wfileops.c
@@ -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