Skip to content

Commit

Permalink
bugfix: memory leak when call list_qsort.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuizhuhaomeng committed May 11, 2022
1 parent a0e25d9 commit 4a1b97c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bgw/scheduler.c
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,10 @@ start_scheduled_jobs(register_background_worker_callback_type bgw_register)
sjob->next_start <= ts_timer_get_current_timestamp())
scheduled_ts_bgw_job_start(sjob, bgw_register);
}

#if PG13_LT
list_free(ordered_scheduled_jobs);
#endif
}

/* Returns the earliest time the scheduler should start a job that is waiting to be started */
Expand Down

0 comments on commit 4a1b97c

Please sign in to comment.