[php-src] PR #17155: Fix GH-17154: Memory leak on rl_line_buffer when no history (libedit).
| From: | devnexen | Date: | Sat, 14 Dec 2024 07:21:20 +0000 |
| Subject: | [php-src] PR #17155: Fix GH-17154: Memory leak on rl_line_buffer when no history (libedit). | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-30000@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17155
Author: devnexen
When there is no history, any subsequent history api call initialising it will call rl_initialise()
thus we lose the previous value in the process.
At module init time, we also call using_history() like with readline.