home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.programmer
- Path: sparky!uunet!s5!is1.is.morgan.com!is.morgan.com!scairns
- From: scairns@is.morgan.com (Scott Cairns)
- Subject: malloc() and free()
- Message-ID: <1992Sep8.171947@is.morgan.com>
- Sender: news@is.morgan.com
- Nntp-Posting-Host: zamboni
- Organization: Morgan Stanley - IS
- Date: Tue, 8 Sep 1992 21:19:47 GMT
- Lines: 21
-
-
- When I free(3) a memory block/pointer previously allocated by a call
- to the malloc(3) family of calls, what happens to that previously
- allocated memory?
-
- It's always been my understanding that this memory has been free()'d
- but only to the process which initially malloc()'ed it. Is this
- correct? If so, how does that process reuse this freed memory?
-
- --
- +------------------------------------------------------------------+
- | Scott Cairns | email: scairns@fsg.com |
- | Fusion Systems Group | or: scairns@is.morgan.com |
- | New York, New York, USA | |
- +------------------------------------------------------------------+
- | Standard disclaimers apply. |
- +------------------------------------------------------------------+
- | Better not take a dog on the space shuttle, because if he sticks |
- | his head out the window coming home, his face might burn up. |
- | - Jack Handey |
- +------------------------------------------------------------------+
-