diff --git a/lib/base/stacktrace.cpp b/lib/base/stacktrace.cpp index 624c1502c..3762f0f76 100644 --- a/lib/base/stacktrace.cpp +++ b/lib/base/stacktrace.cpp @@ -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);