chiark / gitweb /
job: allow job_free() only on already unlinked jobs
authorMichal Schmidt <mschmidt@redhat.com>
Thu, 19 Apr 2012 21:20:34 +0000 (23:20 +0200)
committerMichal Schmidt <mschmidt@redhat.com>
Fri, 20 Apr 2012 15:12:27 +0000 (17:12 +0200)
commit02a3bcc6b4372ca50c0a62b193f9a75b988ffa69
treee570c8bed3b05d55efc6a0a4d1ac5fe9f876d61d
parent153bda8f03c670caf137f745350c0215b9be2147
job: allow job_free() only on already unlinked jobs

job_free() is IMO too helpful when it unlinks the job from the transaction.
The callers should ensure the job is already unlinked before freeing.
The added assertions check if anyone gets it wrong.
src/core/job.c
src/core/manager.c
src/core/manager.h