W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 1999

Re: Question on use of free() in parser.c

From: Dave Raggett <dsr@w3.org>
Date: Mon, 18 Oct 1999 13:05:19 +0100 (GMT Daylight Time)
To: Terry Teague <teague@mailandnews.com>
cc: html-tidy@w3.org
Message-ID: <Pine.WNT.4.10.9910181305030.900-100000@OEMCOMPUTER>
On Thu, 14 Oct 1999, Terry Teague wrote:

> Dear Dave,
> 
> While porting the 27 Sep 99 version of Tidy, I noticed that in
> parser.c, you use free() rather than MemFree().
> 
> Specifically, lines #149, #884.
> 
> Is there a good reason why these calls should not be MemFree()?
> I prefer to bottleneck the memory management calls through
> MemAlloc()/MemFree() etc, for debugging and tracking purposes.
> 
> I made the changes in my code, and it still seems to work fine.
 
Thanks for spotting this.

Regards,

-- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
phone: +44 122 578 2984 (or 2521) +44 385 320 444 (gsm mobile)
World Wide Web Consortium (on assignment from HP Labs)
Received on Monday, 18 October 1999 08:03:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:42 GMT