summaryrefslogtreecommitdiffstats
path: root/trinity-base/tdelibs/files/tdelibs-malloc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'trinity-base/tdelibs/files/tdelibs-malloc.patch')
-rwxr-xr-xtrinity-base/tdelibs/files/tdelibs-malloc.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/trinity-base/tdelibs/files/tdelibs-malloc.patch b/trinity-base/tdelibs/files/tdelibs-malloc.patch
new file mode 100755
index 00000000..9e4ebeb5
--- /dev/null
+++ b/trinity-base/tdelibs/files/tdelibs-malloc.patch
@@ -0,0 +1,11 @@
+--- a/tdecore/malloc/malloc.c
++++ b/tdecore/malloc/malloc.c
+@@ -4306,7 +4306,7 @@
+ remainder_size = chunksize(p);
+
+ if (opts & 0x2) { /* optionally clear the elements */
+- memset(mem, 0, remainder_size - SIZE_SZ - array_size)
++ memset(mem, 0, remainder_size - SIZE_SZ - array_size);
+ }
+
+ /* If not provided, allocate the pointer array as final part of chunk */