diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2006-04-03 13:46:11 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2006-04-03 13:46:11 +0000 |
| commit | 3edb5a8b6d5353d3d4fc4d69206832d79966c8ad (patch) | |
| tree | e04f3072d52cd2595d51fa9bd88ca3b0bf35d08a | |
| parent | bace0def1e45b290a4b536a900793df49a56ee3d (diff) | |
| download | php-git-3edb5a8b6d5353d3d4fc4d69206832d79966c8ad.tar.gz | |
Fixed an unlikely, but possible memory leak.
| -rw-r--r-- | ext/standard/basic_functions.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 0379d69875..7e78d1274c 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -2397,6 +2397,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; } @@ -2980,6 +2981,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; } |
