cstdlib is needed for free.