if (ptr != NULL) {
mdp = MD_TO_MDP(md);
- LOCK(mdp);
for (l = mdp->aligned_blocks; l != NULL; l = l->next) {
if (l->aligned == ptr) {
l->aligned = NULL; /* Mark the slot in the list as free. */
}
}
if (mdp->mfree_hook != NULL) {
- (*mdp->mfree_hook) (mdp, ptr);
+ mdp->mfree_hook(mdp, ptr);
} else {
__mmalloc_free(mdp, ptr);
}
- UNLOCK(mdp);
}
}