Kaydet (Commit) f761287e authored tarafından Barry Warsaw's avatar Barry Warsaw

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*.
üst 1c7aaa2d
...@@ -244,7 +244,11 @@ setup_readline() ...@@ -244,7 +244,11 @@ setup_readline()
rl_completer_word_break_characters = rl_completer_word_break_characters =
" \t\n`~!@#$%^&*()-=+[{]}\\|;:'\",<>/?"; " \t\n`~!@#$%^&*()-=+[{]}\\|;:'\",<>/?";
/* All nonalphanums except '.' */ /* 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(); rl_initialize();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment