W3C home > Mailing lists > Public > www-lib@w3.org > January to March 2003

is there a memory leak?

From: Tanmay Patwardhan <tpthesis@hotmail.com>
Date: Fri, 21 Mar 2003 15:33:43 -0600
To: www-lib@w3.org
Message-ID: <F83wLZzPQ81EWJGM2Ud00008515@hotmail.com>

Hi,
In my program using libwww, using purify on the application, it reported a 
few mem. leaks all at the following piece of code:

[W] MLK: Memory leak of 17 bytes from 1 block allocated in HTStrMatch
        Distribution of leaked blocks
        Allocation location
            malloc         [dbgheap.c:129]
            HTStrMatch     [wwwutils.dll]
            HTDir_new      [wwwdir.dll]
            HTDir_new      [wwwdir.dll]
            HTNetInit      [wwwinit.dll]
            HTNetInit      [wwwinit.dll]
            HTNetInit      [wwwinit.dll]
         // Create a new premptive client
  =>     HTProfile_newNoCacheClient("libwww-POST", "1.0");

I am deleting the profile at the end of the program as:
HTProfile_delete();

Is there anything I am missing? This happens wierdly only the second time I 
use the library in my app, is that means anything!

Thanks in advance,
Tanmay




-----------------------
Tanmay Patwardhan
Applications Developer,
UBS Warburg,
Chicago, IL.
-----------------------




_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail
Received on Friday, 21 March 2003 16:33:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:43 GMT