Skip to content

Commit

Permalink
BF: CS-610 leak within pthread call during shutdown of scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
ernst-bablick committed Sep 19, 2024
1 parent 9ba179f commit b127e4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/daemons/qmaster/sge_thread_scheduler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,8 @@ sge_scheduler_terminate(lList **answer_list) {

sge_mutex_unlock("master scheduler struct", __func__, __LINE__, &(Master_Scheduler.mutex));

pthread_join(thread_id, nullptr);

INFO(MSG_THREAD_XTERMINATED_S, threadnames[SCHEDD_THREAD]);
answer_list_add(answer_list, SGE_EVENT, STATUS_EUNKNOWN, ANSWER_QUALITY_INFO);
} else {
Expand Down

0 comments on commit b127e4b

Please sign in to comment.