mirror of
https://github.com/php/php-src.git
synced 2024-12-04 15:23:44 +08:00
- Don't forget to close the stream.
This commit is contained in:
parent
a3c79eca49
commit
9fea4c1f5f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user