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
- Build Status
Buildable 5496 Build 5496: arc lint + arc unit
Event Timeline
lib/sanitizer_common/sanitizer_malloc_mac.inc | ||
---|---|---|
62 | Nit: prefer no brackets for one liners |
lib/sanitizer_common/sanitizer_malloc_mac.inc | ||
---|---|---|
62 | Even for macros? |
lib/sanitizer_common/sanitizer_malloc_mac.inc | ||
---|---|---|
62 | 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 | Yeah, it may be worth looking into fixing up our macros to use do/while in the future. |
Nit: prefer no brackets for one liners