C memory leak detector