[New-bugs-announce] [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.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>

More information about the New-bugs-announce mailing list