Article View: gnu.bash.bug
Article #435Memory leak in bash
From: Ray Moody
Date: Sat, 05 Aug 1989 02:58
Date: Sat, 05 Aug 1989 02:58
28 lines
1138 bytes
1138 bytes
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;
}
Technical Details
Message-ID:
<8908050258.AA05334@maxwell.physics.purdue.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!MAXWELL.PHYSICS.PURDUE.EDU!rayShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!MAXWELL.PHYSICS.PURDUE.EDU!ray From: ray@MAXWELL.PHYSICS.PURDUE.EDU (Ray Moody) Newsgroups: gnu.bash.bug Subject: Memory leak in bash Message-ID: <8908050258.AA05334@maxwell.physics.purdue.edu> Date: 5 Aug 89 02:58:30 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 28