[issue9450] readline.replace_history_item leaks memory.
Mark Dickinson
report at bugs.python.org
Sun Aug 1 20:13:37 CEST 2010
New submission from Mark Dickinson <dickinsm at gmail.com>:
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.replace_history_item(0, "replaced item")
This is on OS X 10.6.4, with a 64-bit debug build of Python, and the readline module linked against a local build of GNU readline version 6.1.
----------
components: Extension Modules
messages: 112363
nosy: mark.dickinson
priority: normal
severity: normal
stage: needs patch
status: open
title: readline.replace_history_item leaks memory.
type: resource usage
versions: Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9450>
_______________________________________
More information about the Python-bugs-list
mailing list