add free.c file