Please don't write custom memory allocators for production code without seriously considering the security implications of doing so. The glibc allocator has benefited from years of security hardening against very creative attack vectors.
You don't want a simple double-free to lead to an RCE bug, do you...