Path: chuka.playstation.co.uk!news From: "pal" Newsgroups: scee.yaroze.freetalk.english Subject: Re: malloc... free??? Date: 26 Oct 2002 08:30:28 GMT Organization: PlayStation Net Yaroze (SCEE) Lines: 7 Message-ID: <01c27cc8$f366cfe0$a6d5933e@pal-s-omnibook> References: <01c27cc7$ab65b220$a6d5933e@pal-s-omnibook> NNTP-Posting-Host: nas-cbv-6-62-147-213-166.dial.proxad.net X-Newsreader: Microsoft Internet News 4.70.1155 Finally I found some code where I mentioned the problem. It's just that you cant free(NULL). I actually needed to do that. My (ugly) fix was: void* tmpInFree; #define properFree(x) (((tmpInFree = (void*) (x)) == NULL) ? NULL : free(tmpInFree))