[PATCH] D31983: Free zone name when destroying malloc zone
Francis Ricci via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 13 07:13:10 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL300195: Free zone name when destroying malloc zone (authored by fjricci).
Changed prior to commit:
https://reviews.llvm.org/D31983?vs=94998&id=95117#toc
Repository:
rL LLVM
https://reviews.llvm.org/D31983
Files:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_malloc_mac.inc
Index: compiler-rt/trunk/lib/sanitizer_common/sanitizer_malloc_mac.inc
===================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_malloc_mac.inc
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_malloc_mac.inc
@@ -59,6 +59,9 @@
uptr allocated_size = RoundUpTo(sizeof(sanitizer_zone), page_size);
mprotect(zone, allocated_size, PROT_READ | PROT_WRITE);
}
+ if (zone->zone_name) {
+ COMMON_MALLOC_FREE((void *)zone->zone_name);
+ }
COMMON_MALLOC_FREE(zone);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31983.95117.patch
Type: text/x-patch
Size: 547 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170413/126b7fe5/attachment.bin>
More information about the llvm-commits
mailing list