> At the end of main, if the count wasn't balanced, then you knew you had a mismatch between malloc()/free().
A mismatch between malloc(0) and free(-1).
You’d know nothing about calls to malloc with non-zero sizes.
A mismatch between malloc(0) and free(-1).
You’d know nothing about calls to malloc with non-zero sizes.