Commit 470dc4b broke debug=0 builds because debug=0 has its own unused implementation of mem_malloc. Delete the unused implementation.
470dc4b