Re: Doubts about free()



vippstar@xxxxxxxxx wrote:
On Oct 31, 2:49 pm, Pawel Dziepak <pdzie...@xxxxxxxxxxx> wrote:
Assuming there is a need for memory by some other process and no other
free memory is available, is it the case malloc for the other process
would fail under such circumstances. Does the OS do some kind of
tracking and free up this memory. Is there any way to force freeing up
the memory to the system back.
I don't think that <snip>

Please don't remove attribution lines.
<http://www.netmeister.org/news/learn2quote1.html>

Why pick on this bloke rather than that arrogant prat Burditt?

--
Ian Collins
.



Relevant Pages

  • Re: [OT]Re: malloc
    ... Since malloc fails gracefully, ... Memory allocation on FreeBSD can STILL fail: ... In addition to and above, setting option V will ...
    (comp.lang.c)
  • Re: [OT]Re: malloc
    ... Since malloc fails gracefully, ... Not *all* typical desktops perform the same; ISTR that FreeBSD ... Memory allocation on FreeBSD can STILL fail: ...
    (comp.lang.c)
  • Re: 2.2/2.4/2.6 VMs: do malloc() ever return NULL?
    ... mallocwill never fail as long as there ... > malloc() can return NULL. ... It returns NULL if it fails to allocate memory. ...
    (Linux-Kernel)
  • Re: [OT]Re: malloc
    ... Since malloc fails gracefully, ... Not *all* typical desktops perform the same; ISTR that FreeBSD ... Memory allocation on FreeBSD can STILL fail: ...
    (comp.lang.c)
  • Re: 2.2/2.4/2.6 VMs: do malloc() ever return NULL?
    ... >> is still address space (not memory) available. ... >> memory they allocate. ... > malloc() can return NULL. ... There are situations where you really cannot fail - and memory ...
    (Linux-Kernel)