[issue9450] readline.replace_history_item leaks memory.

2010-08-03 Thread Mark Dickinson
Mark Dickinson added the comment: The other leaks have now been fixed too; see issue 8065 for details. -- assignee: -> mark.dickinson resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker

[issue9450] readline.replace_history_item leaks memory.

2010-08-03 Thread Mark Dickinson
Mark Dickinson added the comment: Leaks in replace_history_item and remove_history_item fixed in r83667 (py3k), r83668 (release31-maint) and r83669 (release27-maint). -- versions: +Python 2.7, Python 3.1 ___ Python tracker

[issue9450] readline.replace_history_item leaks memory.

2010-08-01 Thread Mark Dickinson
Mark Dickinson added the comment: It turns out that free_history_entry is new in GNU Readline 5.0. It doesn't exist in libedit. -- ___ Python tracker ___ __

[issue9450] readline.replace_history_item leaks memory.

2010-08-01 Thread Mark Dickinson
Mark Dickinson added the comment: See also issue #8065. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue9450] readline.replace_history_item leaks memory.

2010-08-01 Thread Mark Dickinson
Mark Dickinson added the comment: This patch fixes the leaks in replace_history_item, remove_history_item (similar), and get_current_history_length. I'm not sure which version of the GNU history library introduced free_history_entry (which is used by this patch). I also haven't checked whet

[issue9450] readline.replace_history_item leaks memory.

2010-08-01 Thread Mark Dickinson
New submission from Mark Dickinson : Some functions in the readline module appear to leak memory; readline.replace_history_item is one of these: Test code: import readline readline.clear_history() readline.add_history("first line") readline.add_history("second line") while True: readline.