mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-27 02:45:42 +00:00
Fixed memory leak (double array_init)
This commit is contained in:
1 parent
3da247e7a8
commit
be6e417fdc
1 file changed
+2
-2
+2
-2
@@ -1508,13 +1508,13 @@ PHP_FUNCTION(ob_get_status)
|
||||
return;
|
||||
}
|
||||
|
||||
array_init(return_value);
|
||||
|
||||
if (!OG(active)) {
|
||||
array_init(return_value);
|
||||
return;
|
||||
}
|
||||
|
||||
if (full_status) {
|
||||
array_init(return_value);
|
||||
zend_stack_apply_with_argument(&OG(handlers), ZEND_STACK_APPLY_BOTTOMUP, php_output_stack_apply_status, return_value);
|
||||
} else {
|
||||
php_output_handler_status(OG(active), return_value);
|
||||
|
||||
Reference in new issue
Block a user