[issue9450] readline.replace_history_item leaks memory.

Mark Dickinson report at bugs.python.org
Sun Aug 1 21:07:39 CEST 2010


Mark Dickinson <dickinsm at gmail.com> 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 whether it's available in libedit (used on OS X).

----------
keywords: +patch
Added file: http://bugs.python.org/file18314/issue9450.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9450>
_______________________________________


More information about the Python-bugs-list mailing list