summarylogtreecommitdiffstats
path: root/glibc-2.20-do_ftell_wide-memleak.patch
diff options
context:
space:
mode:
authorFantix King2014-09-17 16:35:34 +0800
committerFantix King2015-11-13 01:19:09 +0800
commit04e15c1da04f8f50e79cdd597cb000ab576bde8a (patch)
tree2a8e7eafb932961f99ceca6d747abe29e6e2497a /glibc-2.20-do_ftell_wide-memleak.patch
parent99395b9de3eed0772fcb5f1e00c08d67a5c78402 (diff)
downloadaur-04e15c1da04f8f50e79cdd597cb000ab576bde8a.tar.gz
2.20-2.1
Diffstat (limited to 'glibc-2.20-do_ftell_wide-memleak.patch')
-rw-r--r--glibc-2.20-do_ftell_wide-memleak.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/glibc-2.20-do_ftell_wide-memleak.patch b/glibc-2.20-do_ftell_wide-memleak.patch
new file mode 100644
index 000000000000..0896a6430dc2
--- /dev/null
+++ b/glibc-2.20-do_ftell_wide-memleak.patch
@@ -0,0 +1,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