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

Re: bug (?) in 3.0-pre1



> 
> 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