The text has a much better version of mm_malloc (page 750).
This file is also available in the file mm.c provided in the tar file for lab2.