From ecbc123b31a891e668d057c9dee4753ccd0c6edd Mon Sep 17 00:00:00 2001 From: Nicky Date: Sat, 18 Apr 2015 01:44:00 +0200 Subject: [PATCH] Do not leak filehandles... --- indra/newview/lldrawpoolbump.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; }