Skip to content

Commit 9fea4c1

Browse files
committed
- Don't forget to close the stream.
1 parent a3c79ec commit 9fea4c1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ext/gd/gd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,6 +1214,7 @@ static void _php_image_create_from(INTERNAL_FUNCTION_PARAMETERS, int image_type,
12141214

12151215
if (im) {
12161216
ZEND_REGISTER_RESOURCE(return_value, im, le_gd);
1217+
php_stream_close(stream);
12171218
return;
12181219
}
12191220

0 commit comments

Comments
 (0)