From: korpela AT islay DOT ssl DOT berkeley DOT edu (Eric J. Korpela) Newsgroups: comp.os.msdos.djgpp Subject: Re: Another aspect of free() ? Date: 10 Jan 1997 18:52:35 GMT Organization: Cal Berkeley-- Space Sciences Lab Lines: 14 Message-ID: <5b635j$258@agate.berkeley.edu> References: <199701090726 DOT KAA00800 AT marstu DOT mari DOT su> <32D4B22D DOT 54F9 AT post DOT comstar DOT ru> NNTP-Posting-Host: islay.ssl.berkeley.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp In article <32D4B22D DOT 54F9 AT post DOT comstar DOT ru>, Dim Zegebart wrote: >If argument for FREE eq NULL you get the problem. :-( >Instead XFREE correctly process NULL value. Why not use "if (p) free(p);"? It's guaranteed to work. Eric -- Eric Korpela | An object at rest can never be korpela AT ssl DOT berkeley DOT edu | stopped. Click here for more info.