fixed variables and function implicit freeing