Inoltre ho notato che il problema si presenta cancellando anche tutte le free()