The portable way to use free and malloc is to include stdlib.h