Do not leak filehandles.

Nicky 2015-04-18 01:47:25 +02:00
parent 3de3e6e762
commit 67f05f585f
1 changed files with 1 additions and 0 deletions

View File

@ -301,6 +301,7 @@ void LLViewerAssetStorage::storeAssetData(
{
// LLAssetStorage metric: Zero size
reportMetric( asset_id, asset_type, filename, LLUUID::null, 0, MR_ZERO_SIZE, __FILE__, __LINE__, "The file was zero length" );
fclose(fp); // <FS:ND/> Do not leak the file handle.
}
else
{