Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: bug (?) in 3.0-pre1



On Jun 28,  7:50pm, Zoltan Hidvegi wrote:
} Subject: Re: bug (?) in 3.0-pre1
}
} I added an additional test to doshfunc() which revealed a memory leak
} again.  Below is the patch to fix that.

Once again, I ask:  Might it not be better to add at the top of doshfunc:

	int luh = useheap;

	if (!luh)
	    heapalloc();

and then before returning:

	if (!luh)
	    permalloc();

Seems like almost any of the MUSTUSEHEAP() functions should adjust and
then restore the allocation strategy internally, rather than relying on
every caller to do so ...


-- 
Bart Schaefer                             Brass Lantern Enterprises
http://www.well.com/user/barts            http://www.nbn.com/people/lantern

New male in /home/schaefer:
>N  2 Justin William Schaefer  Sat May 11 03:43  53/4040  "Happy Birthday"




Messages sorted by: Reverse Date, Date, Thread, Author