Skip to content

Commit

Permalink
Merge pull request #2497 from htcondor/HTCONDOR-2465-branch
Browse files Browse the repository at this point in the history
HTCONDOR-2465 double free bug in condor_transform_ads
  • Loading branch information
GregThain committed May 23, 2024
2 parents fee7007 + e55855b commit a59b8a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/condor_utils/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,9 @@ bool MacroStreamFile::open(const char * filename, bool is_command, MACRO_SET& se

int MacroStreamFile::close(MACRO_SET&set, int parsing_return_val)
{
return Close_macro_source(fp, src, set, parsing_return_val);
int ret = Close_macro_source(fp, src, set, parsing_return_val);
fp = nullptr;
return ret;
}

bool MacroStreamCharSource::open(const char * src_string, const MACRO_SOURCE& _src)
Expand Down

0 comments on commit a59b8a9

Please sign in to comment.