diff --git a/lib/ADT/TestCase.cpp b/lib/ADT/TestCase.cpp index 2a2eabc995..c71dff151c 100644 --- a/lib/ADT/TestCase.cpp +++ b/lib/ADT/TestCase.cpp @@ -42,6 +42,7 @@ TestCase* TC_fromFile(const char* path) { js.at("objects").at(i).at("offsets").at(j).at("offset"); } } + fclose(f); return ret; }