console: fix memory leak
According to the readline library documentation, the callback passed to rl_callback_handler_install is supposed to free the string passed to it: > As with readline(), the handler function should free the line when it > it finished with it. ( See https://tiswww.case.edu/php/chet/readline/readline.html#SEC41 ) Our callback leaks it. Closes #6817 NO_DOC=bug fix
Showing
- changelogs/unreleased/gh-6817-console-memory-leak.md 3 additions, 0 deletionschangelogs/unreleased/gh-6817-console-memory-leak.md
- src/box/lua/console.c 1 addition, 0 deletionssrc/box/lua/console.c
- test/app-luatest/gh_6817_console_memory_leak_test.lua 45 additions, 0 deletionstest/app-luatest/gh_6817_console_memory_leak_test.lua
Loading