Re: dirname return value



Or to put it another way, since it says it MAY use static storage, and
there's no way to find out whether it did or didn't, for safety you have
to assume it's static and not freeable.

Tell me something new :-(

If I call it in a loop, how do I know it's not a memory leak? This

There is no system-supplied function that you can call that is guaranteed
not to leak memory. I'm not really sure that the integer + operator
is prohibited from leaking memory:

while(1) 2+2;


seems to be one of the "untouchable" APIs of POSIX. :-(

Gordon L. Burditt
.



Relevant Pages

  • Enabling memory leak detection in VC++
    ... The visual studio debugger along with C run-time libraries provides us means for detecting memory leaks.But its capabilities are minimal. ... By default, _CrtDumpMemoryLeaks dumps memory leak information to the Output window,we can reset this to a file using _CrtSetReportMode. ... Why does MFC call _CrtDumpMemoryLeaks ?!? ... CRT will happily report all left-over memory via ...
    (microsoft.public.vc.debugger)
  • [NT] Services for UNIX 2.0 Suffer from a Remotely Triggered Memory Leak
    ... Services for UNIX 2.0 Suffer from a Remotely Triggered Memory Leak ... 2000 are not affected by the vulnerability. ... * A vulnerability that could enable an attacker to cause the NFS service ...
    (Securiteam)
  • RE: Weird memory leak when I am playing movie on WinCE6
    ... "tiannho" wrote: ... Now I am suspecting whether there is a real memory leak. ... allocations and deallocations and match them up. ...
    (microsoft.public.windowsce.app.development)
  • RE: Memory increasing even when in debug-break
    ... there are 2 types of memory leak in .Net: ... More interesting is the debugger breaks while memory still increasing ... Microsoft Online Community Support ...
    (microsoft.public.vsnet.debugging)
  • Re: Memory leak in the Driver
    ... will it also work for device driver ??? ... if the following application is used then, there is no memory leak. ...
    (microsoft.public.windowsce.platbuilder)