Comment Comment by bobmcnamara Ages ago I worked with a system where malloc(0) incremented a counter and returned -1.free(-1) decremented the counter.This way you could check for leaks :p parent bobmcnamara 1 year ago
free(-1) decremented the counter.
This way you could check for leaks :p