free() si usa per la memoria allocata con calloc() o malloc() Nel tuo caso non solo non serve ma è anche sbagliato...
Regole del Forum