Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
parameter module again
- X-seq: zsh-workers 6316
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: parameter module again
- Date: Wed, 19 May 1999 17:34:31 +0200
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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