Flexible C memory allocation scheme with leak checking (github.com)