malloc.h is not a standard C header and is missing on many platforms (eg: macos). stdlib.h should cover what is in malloc.h so it is unnecessary.