Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Memorey leak with PS4 usage.
- X-seq: zsh-workers 11703
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Felix Rosencrantz <f_rosencrantz@xxxxxxxxx>, zsh-workers <zsh-workers@xxxxxxxxxxxxxx>
- Subject: Re: PATCH: Memorey leak with PS4 usage.
- Date: Thu, 1 Jun 2000 05:45:52 +0000
- In-reply-to: <20000601032714.13056.qmail@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <20000601032714.13056.qmail@xxxxxxxxxxxxxxxxxxxxxx>
On May 31, 8:27pm, Felix Rosencrantz wrote:
} Subject: PATCH: Memorey leak with PS4 usage.
}
} There seems to be a memory leak issue with the use of promptexpand.
} I've included a patch for utils.c.
What leads you to this conclusion?
dupstring() allocates off zsh's internal heap. Freeing a pointer off the
heap is a Bad Thing. The heap is allocated and freed in large chunks that
zsh subdivides as necessary.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author