Skip to content

Commit

Permalink
Fix phpGH-9710: phpdbg memory leaks by option "-h"
Browse files Browse the repository at this point in the history
Closes phpGH-10237

Signed-off-by: George Peter Banyard <[email protected]>
  • Loading branch information
nielsdos authored and Girgias committed Jan 8, 2023
1 parent 3152b7b commit 8ff2b6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ PHP NEWS
- PHPDBG:
. Fix undefined behaviour in phpdbg_load_module_or_extension(). (nielsdos)
. Fix NULL pointer dereference in phpdbg_create_conditional_breal(). (nielsdos)
. Fix GH-9710: phpdbg memory leaks by option "-h" (nielsdos)

- Posix:
. Fix memory leak in posix_ttyname() (girgias)
Expand Down
2 changes: 2 additions & 0 deletions sapi/phpdbg/phpdbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1414,6 +1414,8 @@ int main(int argc, char **argv) /* {{{ */
get_zend_version()
);
}
PHPDBG_G(flags) |= PHPDBG_IS_QUITTING;
php_module_shutdown();
sapi_deactivate();
sapi_shutdown();
if (ini_entries) {
Expand Down

0 comments on commit 8ff2b6a

Please sign in to comment.