Closed
Description
Description
In /php-src/Zend/zend_ini.c, a pointer variable named 'p' is defined at line 206. At line 227, this pointer 'p' allocates a dynamic memory region using the pemalloc function. If the if statement at line 242 evaluates to true, the function returns at line 247 without either utilizing or freeing the dynamic memory region pointed to by 'p'. This constitutes a memory leak defect, as illustrated in the following diagram:
https://github.com/LuMingYinDetect/php_defects/blob/main/php_2.png
PHP Version
PHP 8.4.0
Operating System
Ubuntu 22.04