summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
bb51016)
In clear_bottom_line() we call readline's rl_copy_text() which
allocates a buffer for the given range of the current input line. But
we never free this buffer, which results in a memory leak. This patch
plugs the leak.
rl_redisplay();
wipe_bottom_line(); /* wipe out the prompt */
rl_insert_text(text);
rl_redisplay();
wipe_bottom_line(); /* wipe out the prompt */
rl_insert_text(text);