[php-src] Issue #15023: The file /php-src/Zend/zend_ini.c has a memory leak defect at line 247.

From: Date: Fri, 19 Jul 2024 11:27:25 +0000
Subject: [php-src] Issue #15023: The file /php-src/Zend/zend_ini.c has a memory leak defect at line 247.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247318@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/15023 Author: LuMingYinDetect ### 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

« previous php.bugs (#247318) next »