Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scheduler/job.c: unload job before freeing job history in cupsdDelete…
…job() With "PreserveJobHistory Off", LogLevel not set to debug (or debug2), and "LogDebugHistory 200" (the default), cupsdDeleteJob() frees the job history and then unloads the job. However, unload_job() calls cupsdLogJob() which re-creates the job history and puts "Unloading..." into it because level (debug) is greater than LogLevel (warn) and LogDebugHistory is set to 200 messages by default. Unused (and unreachable) job history is left behind, resulting in a memory leak. The solution seems to be to unload the job before freeing the job history.
- Loading branch information