The darwin interceptor for malloc_destroy_zone manually frees the
zone struct, but does not free the name component. Make sure to
free the name if it has been set.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/sanitizer_common/sanitizer_malloc_mac.inc | ||
---|---|---|
62 ↗ | (On Diff #94998) | Nit: prefer no brackets for one liners |
lib/sanitizer_common/sanitizer_malloc_mac.inc | ||
---|---|---|
62 ↗ | (On Diff #94998) | Even for macros? |
lib/sanitizer_common/sanitizer_malloc_mac.inc | ||
---|---|---|
62 ↗ | (On Diff #94998) | Ha, you're right, COMMON_MALLOC_FREE is . I was assuming multiline macro supposed to do this "do {} while (0)" trick. Anyway, ignore this nit. |
lib/sanitizer_common/sanitizer_malloc_mac.inc | ||
---|---|---|
62 ↗ | (On Diff #94998) | Yeah, it may be worth looking into fixing up our macros to use do/while in the future. |