Skip to content

Commit

Permalink
Restore arg_info
Browse files Browse the repository at this point in the history
If arg_info is not restored, it will result in double free.
  • Loading branch information
huanghantao committed Mar 13, 2021
1 parent 5b0194c commit adf0fa8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ext-src/swoole_runtime.cc
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ void php_swoole_runtime_rshutdown() {
efree(rf->fci_cache);
}
rf->function->internal_function.handler = rf->ori_handler;
rf->function->internal_function.arg_info = rf->ori_arg_info;
efree(rf);
}
ZEND_HASH_FOREACH_END();
Expand Down

0 comments on commit adf0fa8

Please sign in to comment.