W3C home > Mailing lists > Public > www-lib@w3.org > July to September 2000

AW: memory leak?

From: Kallweit, Heiner <Heiner.Kallweit@commerzbank.com>
Date: Thu, 20 Jul 2000 18:00:22 +0200
Message-ID: <01EBDB2D6DFDD211A98200805FF50CF901188D5F@SV002871>
To: "'Jim Marshall'" <jim_marshall2268@hotmail.com>, www-lib@w3.org
Hi Jim,

I also had to struggle with that. The mentioned string belongs to an anchor
and from what I've read an anchor never dies ;-)
What I did in my terminate handler is the following and till now it works.

        entityAnchor=HTRequest_entityAnchor(request);
        if (entityAnchor)
            entityAnchorDocument=HTAnchor_document(entityAnchor);
        if (entityAnchorDocument)
            HT_FREE(entityAnchorDocument);

        /* We are done with this request */

        HTRequest_delete(request);

Regards, Heiner                                        

> -----Ursprüngliche Nachricht-----
> Von: Jim Marshall [mailto:jim_marshall2268@hotmail.com]
> Gesendet am: Donnerstag, 20. Juli 2000 15:50
> An: www-lib@w3.org
> Betreff: memory leak?
> 
> First let me say thanks to everyone who has helped me with 
> the last two 
> questions I asked.  With your help I've been able to move 
> forward and get 
> things working!!
> 
> Now I'm tracking a memory leak of 128 bytes.  It appears to 
> be occurring in 
> the 'HTPostFormAnchor' function (I have 1.155) the following code is 
> executed:
> 
> char * form_encoded = form_url_encode(NULL, formdata);
> 
> form_url_encode allocates a HTChunk of 128 bytes, it then 
> converts this to a 
> string which it returns, but I don't see anywhere in the 
> HTPostFormAnchor 
> function where the memory is ever deallocated
> 
> -Jim
> ______________________________________________________________
> __________
> Get Your Private, Free E-mail from MSN Hotmail at 
http://www.hotmail.com
Received on Thursday, 20 July 2000 12:01:01 GMT

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