Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: bug (?) in 3.0-pre1
- X-seq: zsh-workers 1466
- From: Zoltan Hidvegi <hzoli@xxxxxxxxxx>
- To: gene@xxxxxxxx
- Subject: Re: bug (?) in 3.0-pre1
- Date: Fri, 28 Jun 1996 19:50:44 +0200 (MET DST)
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <9606281712.AA07249@xxxxxxxx> from "gene@xxxxxxxx" at "Jun 28, 96 01:12:35 pm"
- Organization: Dept. of Comp. Sci., Eotvos University, Budapest, Hungary
- Phone: (36 1)2669833 ext: 2667, home phone: (36 1) 2752368
>
> HPUX 9.01 s700.
>
> Start a new shell and do 'cd -' generates BUG.
>
> % exec $SHELL
> % cd -
> ~/app/gnuplot/gnuplot
> BUG: permanent allocation in doshfunc
> %
I added an additional test to doshfunc() which revealed a memory leak
again. Below is the patch to fix that.
Zoltan
*** Src/builtin.c 1996/06/28 02:05:24 2.49
--- Src/builtin.c 1996/06/28 17:46:27
***************
*** 1269,1275 ****
--- 1269,1277 ----
if ((l = getshfunc("chpwd"))) {
fflush(stdout);
fflush(stderr);
+ heapalloc();
doshfunc(dupstruct(l), NULL, 0, 1);
+ permalloc();
}
/* handle directory stack sizes out of range */
Messages sorted by:
Reverse Date,
Date,
Thread,
Author