Include stdlib to avoid implicit declaration of free.