[php-src] PR #22255: readline: Fix memory leak in interactive shell INI directive
| From: | iliaal | Date: | Sun, 07 Jun 2026 21:28:54 +0000 |
| Subject: | [php-src] PR #22255: readline: Fix memory leak in interactive shell INI directive | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-36341@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/22255
Author: iliaal
In the php -a interactive shell, a line of the form #name=value sets an INI directive and then
continues the loop without freeing the readline() buffer, unlike every sibling branch. Reproduces
under valgrind (USE_ZEND_ALLOC=0): 9 bytes definitely lost at readline_cli.c per such line.