Skip to content

Commit

Permalink
Only deinit globals when they were initialised
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed Oct 8, 2021
1 parent 4ef0e54 commit e1107b2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions xdebug.c
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,11 @@ static void php_xdebug_init_globals(zend_xdebug_globals *xg)
}
}

static void php_xdebug_shutdown_globals (zend_xdebug_globals *xg)
static void php_xdebug_shutdown_globals(zend_xdebug_globals *xg)
{
xdebug_deinit_develop_globals(&xg->globals.develop);
if (XDEBUG_MODE_IS(XDEBUG_MODE_DEVELOP)) {
xdebug_deinit_develop_globals(&xg->globals.develop);
}
}


Expand Down

0 comments on commit e1107b2

Please sign in to comment.