When freeing a mapped allocation, call UTRACE_FREE() again for the metadata.

This commit is contained in:
Dag-Erling Smørgrav 2017-02-19 19:49:27 +01:00
parent d8f6837026
commit d4626dbd70

View file

@ -464,7 +464,7 @@ free(void *p)
if (m == mappings) if (m == mappings)
mappings = m->next; mappings = m->next;
/* fall through and free metadata */ /* fall through and free metadata */
p = m; UTRACE_FREE(p = m);
++nmapfree; ++nmapfree;
break; break;
} }