home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / programm / 4574 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.3 KB  |  33 lines

  1. Newsgroups: comp.unix.programmer
  2. Path: sparky!uunet!s5!is1.is.morgan.com!is.morgan.com!scairns
  3. From: scairns@is.morgan.com (Scott Cairns)
  4. Subject: malloc() and free()
  5. Message-ID: <1992Sep8.171947@is.morgan.com>
  6. Sender: news@is.morgan.com
  7. Nntp-Posting-Host: zamboni
  8. Organization: Morgan Stanley - IS
  9. Date: Tue, 8 Sep 1992 21:19:47 GMT
  10. Lines: 21
  11.  
  12.  
  13. When I free(3) a memory block/pointer previously allocated by a call
  14. to the malloc(3) family of calls, what happens to that previously
  15. allocated memory?
  16.  
  17. It's always been my understanding that this memory has been free()'d
  18. but only to the process which initially malloc()'ed it.  Is this
  19. correct?  If so, how does that process reuse this freed memory?
  20.  
  21. -- 
  22. +------------------------------------------------------------------+
  23. | Scott Cairns               |   email: scairns@fsg.com         |
  24. | Fusion Systems Group        |      or: scairns@is.morgan.com   |
  25. | New York, New York, USA       |                                  |
  26. +------------------------------------------------------------------+
  27. | Standard disclaimers apply.                      | 
  28. +------------------------------------------------------------------+
  29. | Better not take a dog on the space shuttle, because if he sticks |
  30. | his head out the window coming home, his face might burn up.     |
  31. |                        - Jack Handey           |
  32. +------------------------------------------------------------------+
  33.