summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2006-04-03 13:46:35 +0000
committerIlia Alshanetsky <iliaa@php.net>2006-04-03 13:46:35 +0000
commita24cb8773f90ede704ec6f89f0c3072ba13f4738 (patch)
tree14e0bf058d8f37b1402ce12dd5efa7f801509426
parent0b0fff07b20b81845e87fbb514322c4c569a7d04 (diff)
downloadphp-git-a24cb8773f90ede704ec6f89f0c3072ba13f4738.tar.gz
MFB51: 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 e7f74c8cb2..9b9f935f59 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -2350,6 +2350,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;
}
@@ -2915,6 +2916,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;
}