Fixed an error about free() not being declared