Re: SSL Memory Leakage
"Sandesh Anvekar" <[email protected]> Mon, 24 Jan 2005 09:53:20 +0530
| Newsgroups | gmane.comp.lib.libwww |
|---|---|
| Message-ID | <06d701c501cc$70d87fc0$9b0aa8c0@sandesh> |
Hi, > > > This fragment allocates memory and never frees it. Notice that in the > library function, HTRequest_new/0 defined in HTReqMan.c there is a call > to HT_CALLOC/2 . . . You could move the call to HTRequest_new/0 outside > the loop and make a call to HTRequest_clear/1 or just add > HTRequest_delete/1 at the bottom of your loop. The intent of using the > HTRequest_clear/1 call would be avoidance of somewhat expensive create > and tear down of memory structures. > I have done this in the request terminator callback function wherein I have made call to HTRequest_delete(). Also I have compiled this on Rehat Linux 8.0 (2.4.18-14) Did u have any luck with the Robot example. Please let me know. Thanks, Sandesh