[gnu.bash.bug] Memory leak in bash

ray@MAXWELL.PHYSICS.PURDUE.EDU (Ray Moody) (08/05/89)

    Bash has a memory leak.  Say PS1='\w' and then push return fifty
times or so.  Bash will grow to an enormous size.

								Ray
-------------------------------------------------------------------------------
RCS file: RCS/parse.y,v
retrieving revision 1.2.1.2
diff -c -r1.2.1.2 parse.y
*** /tmp/,RCSt1005323	Fri Aug  4 21:57:14 1989
--- parse.y	Fri Aug  4 21:42:28 1989
***************
*** 1526,1531
  #endif  /* EFFICIENT */
  
  		temp = savestring (polite_directory_format (t_string));
  		goto add_string;
  	      }
        

--- 1526,1532 -----
  #endif  /* EFFICIENT */
  
  		temp = savestring (polite_directory_format (t_string));
+ 		free (t_string);
  		goto add_string;
  	      }