mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.5'
* PHP-8.5: phar: Fix file descriptor/memory leak when opening central fp fails
This commit is contained in:
@@ -1394,6 +1394,7 @@ fperror:
|
||||
pass.centralfp = php_stream_fopen_tmpfile();
|
||||
|
||||
if (!pass.centralfp) {
|
||||
php_stream_close(pass.filefp);
|
||||
goto fperror;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user