Skip to content

Commit 8ff2b6a

Browse files
nielsdosGirgias
authored andcommitted
Fix GH-9710: phpdbg memory leaks by option "-h"
Closes GH-10237 Signed-off-by: George Peter Banyard <[email protected]>
1 parent 3152b7b commit 8ff2b6a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ PHP NEWS
3333
- PHPDBG:
3434
. Fix undefined behaviour in phpdbg_load_module_or_extension(). (nielsdos)
3535
. Fix NULL pointer dereference in phpdbg_create_conditional_breal(). (nielsdos)
36+
. Fix GH-9710: phpdbg memory leaks by option "-h" (nielsdos)
3637

3738
- Posix:
3839
. Fix memory leak in posix_ttyname() (girgias)

sapi/phpdbg/phpdbg.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,6 +1414,8 @@ int main(int argc, char **argv) /* {{{ */
14141414
get_zend_version()
14151415
);
14161416
}
1417+
PHPDBG_G(flags) |= PHPDBG_IS_QUITTING;
1418+
php_module_shutdown();
14171419
sapi_deactivate();
14181420
sapi_shutdown();
14191421
if (ini_entries) {

0 commit comments

Comments
 (0)