Re: Memory leaks


Subject: Re: Memory leaks
From: Patrick Lam (plam@plam.lcs.mit.edu)
Date: Fri May 25 2001 - 11:34:35 CDT


On Sat, 26 May 2001, Martin Sevior wrote:

> On Fri, 25 May 2001, Mike Nordell wrote:
>
> > There are quite a few strings allocated by UT_strdup in the piecetable
> > (allocation chain goes something like
> > frame->document->piecetable->varset->PP_AttrProp::setProperty->UT_strdup.
> > Oh, *and* UT_cloneString from PP_AttrProp::setAttribute.
> >
> > Perhaps it could be consedered a nice gesture to free that memory? :-)
>
> We should be very careful here. The pointers to those leaked strings may
> well be saved and be propagated to all sorts of places.

This is why Dom introduced AbiObject. I suspect that things will be
changing here in this regard in the near future.

pat



This archive was generated by hypermail 2b25 : Sat May 26 2001 - 03:51:07 CDT