Hi,

i have a list which is my p, this list could have lot of elements.

I use this code below to free the memory at the end of my program.

A strange things happen, at certain point i dont know why, the execution stop at the free(app);

I have this problem just on Windows! On linux every thing is fine

Does someone know what can cause this stop problem?

Code:
while(p!=NULL){
		app=p;
                free(app);
		p=p->next;


	}
thanks