malloc works.Regarding memory dump, how tomakes sure that the last memory block says it's allocated