Re: malloc and realloc



tphipps@xxxxxxxxxxxxxx wrote:
At the risk of repeating myself...

On Jan 28, 4:20 pm, CBFalconer <cbfalco...@xxxxxxxxx> wrote:
<snip>

Any time you see "x =realloc(x, size);" you have a potential
memory leak, and you know the coder is probably inexperienced.
Exceptions exist.

So there's a memory leak for some tiny number of clock cycles until
abort() is called... big deal.

Some primitive systems are unable to reclaim memory lost through a
program leak. DOS and Windows 3.x series were famous for this feature.
IIRC, even Windows 95 occasionally suffered from this deficiency.

.



Relevant Pages

  • Memory Leak issue
    ... MFC, COM dll, COM ocx, COM server, Windows static lib and windows dynamic ... It is also showing some of the memory leak in the MFC dlls. ... We are measuring the Private bytes for the application using Sysinternals ...
    (microsoft.public.vc.mfc)
  • Memory Leak Issue
    ... MFC, COM dll, COM ocx, COM server, Windows static lib and windows dynamic ... It is also showing some of the memory leak in the MFC dlls. ... We are measuring the Private bytes for the application using Sysinternals ...
    (microsoft.public.vc.debugger)
  • RE: Memory leak when using directshow, help!
    ... These do not get destroyed after all the directshow ... What "ActiveMovieWindow" windows do you see and are they destroyed? ... I have used the ocx to play the same files with no memory leak. ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Svchost Memory Leak in Windows 2003 sp1
    ... Currently we are seeing a memory leak occuring in svchost process via ... Task Manager in Windows 2003 sp1. ... Windows Management Instrumentation ...
    (microsoft.public.windows.server.general)
  • Re: "Insufficient system resources exist"
    ... You have a memory leak somewhere...very hard to diagnose. ... >I am experiencing an interesting problem with system resources in Windows ... > Nothing will fix it, other than to crash out and re-boot. ... > Below is my Hijack This log: ...
    (microsoft.public.windowsxp.help_and_support)