summaryrefslogtreecommitdiff
path: root/src/sp_execute.c
diff options
context:
space:
mode:
authorChristian Göttsche2024-05-29 20:38:30 +0200
committerjvoisin2024-06-06 16:29:40 +0200
commit3b20c3269df54bf5f3c0896017c8a78515874b29 (patch)
treef13d77abab6902436b55bd3613b569063cebcb21 /src/sp_execute.c
parent087590b889fc2746c1392fe0b36984ed3ec1e3b0 (diff)
Free allocated memory in early exit
Diffstat (limited to '')
-rw-r--r--src/sp_execute.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sp_execute.c b/src/sp_execute.c
index f105b7f..690b1a9 100644
--- a/src/sp_execute.c
+++ b/src/sp_execute.c
@@ -213,6 +213,7 @@ static inline void sp_execute_handler(INTERNAL_FUNCTION_PARAMETERS, bool interna
213 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))); 213 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)));
214 if (is_hooked) { 214 if (is_hooked) {
215 sp_call_orig_execute(INTERNAL_FUNCTION_PARAM_PASSTHRU, internal); 215 sp_call_orig_execute(INTERNAL_FUNCTION_PARAM_PASSTHRU, internal);
216 efree(function_name);
216 return; 217 return;
217 } 218 }
218 219