diff options
author | Barry Warsaw <barry@python.org> | 1999-01-29 21:55:03 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1999-01-29 21:55:03 (GMT) |
commit | f761287e0aaa282c564ca15fde56e5d8e9af8f29 (patch) | |
tree | 4842232d92342372e405f8be03066f5a25323d2f /Modules | |
parent | 1c7aaa2d730813793d8a138d170360b0d420576a (diff) | |
download | cpython-f761287e0aaa282c564ca15fde56e5d8e9af8f29.zip cpython-f761287e0aaa282c564ca15fde56e5d8e9af8f29.tar.gz cpython-f761287e0aaa282c564ca15fde56e5d8e9af8f29.tar.bz2 |
setup_readline(): Added a comment about memory leak (reported by
Purify) being caused by a bug in the readline library. Nothing we can
do about it.
Cause: readline_initialize_everything() throws away the return value
from rl_read_init_file(), but that happens to be the last reference to
a dynamically allocated char*.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/readline.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/readline.c b/Modules/readline.c index 608dd88..b2b56a2 100644 --- a/Modules/readline.c +++ b/Modules/readline.c @@ -244,7 +244,11 @@ setup_readline() rl_completer_word_break_characters = " \t\n`~!@#$%^&*()-=+[{]}\\|;:'\",<>/?"; /* All nonalphanums except '.' */ - /* Initialize (allows .inputrc to override) */ + /* Initialize (allows .inputrc to override) + * + * XXX: A bug in the readline-2.2 library causes a memory leak + * inside this function. Nothing we can do about it. + */ rl_initialize(); } |