Thread View: gnu.bash.bug
1 messages
1 total messages
Started by Ray Moody
Sat, 05 Aug 1989 02:58
Memory leak in bash
Author: 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;
}
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads