Add <stdlib.h> for malloc() and free() declarations.