Fix another potential file handle leak.

meow-7.2.2
Nicky 2015-04-20 14:53:04 +02:00
parent 6c828030a7
commit c9064c8709
1 changed files with 1 additions and 0 deletions

View File

@ -122,6 +122,7 @@ void LLStandardBumpmap::addstandard()
S32 fields_read = fscanf( file, "LLStandardBumpmap version %d", &file_version );
if( fields_read != 1 )
{
fclose( file ); // <FS:ND/> Do not leak teh file handle.
LL_WARNS() << "Bad LLStandardBumpmap header" << LL_ENDL;
return;
}