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

parameter module again



I was just looking at the parameter module for nefarious purposes of my
own, and I think there may be memory leaks in it.  The zsh convention is
that the setting functions for parameters are passed permanently allocated
memory, so that (e.g.) options[foo]=on passes a newly allocated string "on"
which setpmoption() doesn't free.  This happens consistently throughout the
module -- in fact, some of the set* routines specially ztrdup() the value
they're passed.

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy



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