- From: Sandesh Anvekar <sanvekar@controlnet.co.in>
- Date: Mon, 24 Jan 2005 09:53:20 +0530
- To: <bancroft@america.net>
- Cc: <www-lib@w3.org>
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
Received on Monday, 24 January 2005 04:51:58 UTC