Skip to content

Commit 0a89e99

Browse files
committed
Free trampoline in another error path
1 parent 1908418 commit 0a89e99

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

win32/signal.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ PHP_FUNCTION(sapi_windows_set_ctrl_handler)
122122
#endif
123123

124124
if (!php_win32_console_is_cli_sapi()) {
125+
if (ZEND_FCC_INITIALIZED(fcc)) {
126+
zend_release_fcall_info_cache(&fcc);
127+
}
125128
zend_throw_error(NULL, "CTRL events trapping is only supported on console");
126129
RETURN_THROWS();
127130
}

0 commit comments

Comments
 (0)