diff --git a/indra/newview/lldrawpoolbump.cpp b/indra/newview/lldrawpoolbump.cpp index e95ee575a2..e2675859df 100755 --- a/indra/newview/lldrawpoolbump.cpp +++ b/indra/newview/lldrawpoolbump.cpp @@ -129,6 +129,7 @@ void LLStandardBumpmap::addstandard() if( file_version > STD_BUMP_LATEST_FILE_VERSION ) { LL_WARNS() << "LLStandardBumpmap has newer version (" << file_version << ") than viewer (" << STD_BUMP_LATEST_FILE_VERSION << ")" << LL_ENDL; + fclose( file ); // Do not leak the file handle return; } @@ -146,6 +147,7 @@ void LLStandardBumpmap::addstandard() if( fields_read != 2 ) { LL_WARNS() << "Bad LLStandardBumpmap entry" << LL_ENDL; + fclose( file ); // Do not leak the file handle return; }