diff --git a/indra/llrender/llfontfreetype.cpp b/indra/llrender/llfontfreetype.cpp index f4f086cb9d455f2be5b2bfb7d61c35535e9faf79..6fa90ca45c67979e829bd98a246711b1639f508d 100644 --- a/indra/llrender/llfontfreetype.cpp +++ b/indra/llrender/llfontfreetype.cpp @@ -112,6 +112,7 @@ const U8* LLFontManager::loadFont(const std::string& filename, long& out_size) if (fread(in_buf, 1, out_size, filep) != out_size) { out_size = 0; + delete [] in_buf; return nullptr; } filep.close();