Skip to content

Commit

Permalink
Free allocated memory in early exit
Browse files Browse the repository at this point in the history
  • Loading branch information
cgzones authored and jvoisin committed Jun 6, 2024
1 parent 087590b commit 3b20c32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sp_execute.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ static inline void sp_execute_handler(INTERNAL_FUNCTION_PARAMETERS, bool interna
bool is_hooked = (zend_hash_str_find(SPG(disabled_functions_hook), VAR_AND_LEN(function_name)) || zend_hash_str_find(SPG(disabled_functions_hook), VAR_AND_LEN(function_name)));
if (is_hooked) {
sp_call_orig_execute(INTERNAL_FUNCTION_PARAM_PASSTHRU, internal);
efree(function_name);
return;
}

Expand Down

0 comments on commit 3b20c32

Please sign in to comment.