Skip to content

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

Closed
@LuMingYinDetect

Description

@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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions