summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2006-04-03 13:46:48 +0000
committerIlia Alshanetsky <iliaa@php.net>2006-04-03 13:46:48 +0000
commit67fdeb1067dc0eae318fc45d0959b429779465fa (patch)
tree54d30287625655dca3d7ae3127bd91b2f8c3f5d9
parentccf09f5bbe740c11e0a2eeda39f62cc5584a22b6 (diff)
downloadphp-git-67fdeb1067dc0eae318fc45d0959b429779465fa.tar.gz
MFH: Fixed an unlikely, but possible memory leak.
-rw-r--r--ext/standard/basic_functions.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index 9f5b24fe8b..922636e8a2 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -2219,6 +2219,7 @@ PHP_FUNCTION(register_shutdown_function)
shutdown_function_entry.arguments = (zval **) safe_emalloc(sizeof(zval *), shutdown_function_entry.arg_count, 0);
if (zend_get_parameters_array(ht, shutdown_function_entry.arg_count, shutdown_function_entry.arguments) == FAILURE) {
+ efree(shutdown_function_entry.arguments);
RETURN_FALSE;
}
@@ -2760,6 +2761,7 @@ PHP_FUNCTION(register_tick_function)
tick_fe.arguments = (zval **) safe_emalloc(sizeof(zval *), tick_fe.arg_count, 0);
if (zend_get_parameters_array(ht, tick_fe.arg_count, tick_fe.arguments) == FAILURE) {
+ efree(tick_fe.arguments);
RETURN_FALSE;
}