diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2004-05-20 23:37:59 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2004-05-20 23:37:59 +0000 |
commit | 9cccfa57b6b207411e77d2996fb9263370eb06ff (patch) | |
tree | bb0ab9eb2f1cb4f8db0915ccf21c0727d32b4d57 | |
parent | 221710e820acc0980c986f3b9518f8cf58d6349f (diff) | |
download | php-git-9cccfa57b6b207411e77d2996fb9263370eb06ff.tar.gz |
Fixed stream leak on error.
-rw-r--r-- | ext/gd/gd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 135b548f6b..9627d2cdf3 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -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; } |