mirror of
https://github.com/php/php-src.git
synced 2026-04-30 03:33:17 +02:00
Fixed stream leak on error.
This commit is contained in:
@@ -737,6 +737,7 @@ PHP_FUNCTION(imageloadfont)
|
||||
if (body_size != body_size_check) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error reading font");
|
||||
efree(font);
|
||||
php_stream_close(stream);
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user