From: Markus Fischer Date: Sat, 15 Jun 2002 17:46:44 +0000 (+0000) Subject: - Don't forget to close the stream. X-Git-Tag: php5_5_0~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9fea4c1f5f7102a9627d5e0834078fbfa865f461;p=php - Don't forget to close the stream. --- diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 88e54f1334..0c24d172e5 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -1214,6 +1214,7 @@ static void _php_image_create_from(INTERNAL_FUNCTION_PARAMETERS, int image_type, if (im) { ZEND_REGISTER_RESOURCE(return_value, im, le_gd); + php_stream_close(stream); return; }