From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Tue Dec 05 2000 - 20:16:32 EST
On Tue, Dec 05, 2000 at 08:21:08PM +0000, Bjorn Reese wrote:
>
> JohnnyXia@acersoftech.com.cn wrote:
>
> > pOld = realloc( pOld, newsize );
>
> You are right. If realloc() fails, then the old memory block is
> lost. This behaviour is not restricted to individual platforms,
> but a general ANSI/ISO stdlib behaviour.
yes this is kind of unclean, but basically if the programs runs out
of memory, it will leak. That's a problem, I don't plan to fix this
immediately but I keep this in the list of things TODO. Patch welcome :-)
Daniel
-- Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes | Today's Bookmarks : Tel : +33 476 615 257 | 655, avenue de l'Europe | Linux XML libxml WWW Fax : +33 476 615 207 | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind http://www.w3.org/People/all#veillard%40w3.org | RPM badminton Kaffe ---- Message from the list xml@rpmfind.net Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@rpmfind.net
This archive was generated by hypermail 2b29 : Wed Dec 06 2000 - 09:43:48 EST