From: Groepaz (groepaz_at_gmx.net)
Date: 2003-06-03 00:08:30
On Monday 02 June 2003 23:57, MagerValp wrote: > What could make a call to free fail? Suddenly, this code in simplemenu > freezes: > > while (item) { > next = item->next; > free(item); > item = next; > } > > It works fine by itself, but after I use my file selector and load and > convert a file, the free call never returns. sure you didnt corrupt the memory? malloc stores some info about the allocated blocks before or after (dunno how its implemented in cc65) the allocated block, so if you mess that up free will fail. gpz ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2003-06-03 00:10:42 CEST