stdlib.h should be used instead of linux-specific malloc.h