From c9064c8709288402d2cfb86e750fb6722b612ae2 Mon Sep 17 00:00:00 2001 From: Nicky Date: Mon, 20 Apr 2015 14:53:04 +0200 Subject: [PATCH] Fix another potential file handle leak. --- indra/newview/lldrawpoolbump.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/indra/newview/lldrawpoolbump.cpp b/indra/newview/lldrawpoolbump.cpp index e2675859df..942576c89c 100755 --- a/indra/newview/lldrawpoolbump.cpp +++ b/indra/newview/lldrawpoolbump.cpp @@ -122,6 +122,7 @@ void LLStandardBumpmap::addstandard() S32 fields_read = fscanf( file, "LLStandardBumpmap version %d", &file_version ); if( fields_read != 1 ) { + fclose( file ); // Do not leak teh file handle. LL_WARNS() << "Bad LLStandardBumpmap header" << LL_ENDL; return; }