Fix file descriptor leak in StackTracce::Addr2Line.

Fixes #5735
This commit is contained in:
Gunnar Beutner 2014-03-10 13:38:36 +01:00
parent e8759a12a5
commit e693486dae
1 changed files with 1 additions and 0 deletions

View File

@ -122,6 +122,7 @@ String StackTrace::Addr2Line(const String& exe, uintptr_t rva)
char buffer[512];
fgets(buffer, sizeof(buffer), fp);
fclose(fp);
String line = buffer;
boost::algorithm::trim_right(line);