On Jun 19, 2005, at 9:06 PM, Sisyphus wrote:
To get rid of the "Free to wrong pool..." error, I've deleted the free()ing
of the 2 struct elements from DESTROY(). Is that the correct fix?

For some reason *both* the Civilian objects and the Soldier objects now get DESTROY()ed without error (for me anyway) - but surely the job is not being
done correctly ??

Looks like a memory leak to me. You're no longer freeing the memory allocated by strdup.

Marvin Humphrey
Rectangular Research
http://www.rectangular.com/



Reply via email to