When multiple instances of pgAgent are running on the same schema, only
one of the instance can pick up the job to run. Hence - rest of the
instances will never run the job. Hence - the job-thread does not
release the job object.
And, end up leaking the memory.
Releasing the job object from the destructor of the job-thread will
avoid such memory-leak.
Branch
------
master
Details
-------
https://git.postgresql.org/gitweb?p=pgagent.git;a=commitdiff;h=adc49f0a66eae645420f86acd383a75918771bf2
Author: Rob Emery <re-pgsql@codeweavers.net>
Modified Files
--------------
job.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)