mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 07:18:08 +02:00
[ticket/15305] Close stream before throwing an exception
PHPBB3-15305
This commit is contained in:
@@ -231,6 +231,7 @@ class local implements adapter_interface, stream_interface
|
|||||||
|
|
||||||
if (stream_copy_to_stream($resource, $stream) === false)
|
if (stream_copy_to_stream($resource, $stream) === false)
|
||||||
{
|
{
|
||||||
|
fclose($stream);
|
||||||
throw new exception('STORAGE_CANNOT_COPY_RESOURCE');
|
throw new exception('STORAGE_CANNOT_COPY_RESOURCE');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user