Update src/functions.c

free_memory function modified (doesn't return anything from now on).