| delorie.com/archives/browse.cgi | search |
| 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 <zager AT post DOT comstar DOT ru> 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. <a href="http://www.cs.indiana.edu/finger/mofo.ssl.berkeley.edu/korpela/w"> Click here for more info.</a>
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |