1
0
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:
Ilia Alshanetsky
2004-05-20 23:37:59 +00:00
parent 221710e820
commit 9cccfa57b6
+1
View File
@@ -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;
}