Skip to content

Commit

Permalink
Merge pull request htcondor#768 from htcondor/V9_12-HTCONDOR-1233-fix…
Browse files Browse the repository at this point in the history
…-condor_q-leak

HTCONDOR-1233 fix-condor_q-leak
  • Loading branch information
johnkn authored Aug 10, 2022
2 parents 49c3867 + 37fe09b commit 86d614c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/condor_q.V6/queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3870,6 +3870,7 @@ show_schedd_queue(const char* scheddAddress, const char* scheddName, const char*
// we just need to write the footer/summary
if (g_stream_results) {
print_full_footer(summary_ad, &writer);
delete summary_ad;
return true;
}

Expand All @@ -3888,6 +3889,7 @@ show_schedd_queue(const char* scheddAddress, const char* scheddName, const char*

//PRAGMA_REMIND("TJ: shouldn't this be using scheddAddress instead of scheddName?")
DaemonAllowLocateFull schedd(DT_SCHEDD, scheddName, pool ? pool->addr() : NULL );
delete summary_ad;

return print_jobs_analysis(ads, source_label.c_str(), &schedd);
}
Expand All @@ -3904,6 +3906,7 @@ show_schedd_queue(const char* scheddAddress, const char* scheddName, const char*
}
}
print_full_footer(summary_ad, &writer);
delete summary_ad;
return true;
}

Expand Down Expand Up @@ -3944,6 +3947,7 @@ show_schedd_queue(const char* scheddAddress, const char* scheddName, const char*
print_full_footer(summary_ad, &writer);
}

delete summary_ad;
return true;
}

Expand Down

0 comments on commit 86d614c

Please sign in to comment.