diff --git a/PWGUD/Core/UDGoodRunSelector.cxx b/PWGUD/Core/UDGoodRunSelector.cxx index 0eb377379a3..f33ea96cec5 100644 --- a/PWGUD/Core/UDGoodRunSelector.cxx +++ b/PWGUD/Core/UDGoodRunSelector.cxx @@ -118,6 +118,7 @@ bool UDGoodRunSelector::init(std::string const& goodRunsFile) // is it a proper json document? if (jsonDocument.HasParseError()) { + fclose(fjson); LOGF(error, "Check the goodRuns file! There is a problem with the format!"); return false; }