Skip to content

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

Closed

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

Activity

  1. added 2 commits that reference this issue on Jul 19, 2024
    8c19efd
    f21947a
  2. added a commit that references this issue on Jul 19, 2024
    442ae96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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