diff options
author | Kevin Wolf <kwolf@redhat.com> | 2018-04-12 19:06:53 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2018-05-23 14:30:49 +0200 |
commit | fd61a701f1de8e4c1d89b3716ba9ca749cf5c724 (patch) | |
tree | 91697cd6be468f4b6678d7940cfbc690801587af /blockjob.c | |
parent | 252291eaeafcd234a602d71cdf9415dbfc7bc867 (diff) | |
download | qemu-fd61a701f1de8e4c1d89b3716ba9ca749cf5c724.zip qemu-fd61a701f1de8e4c1d89b3716ba9ca749cf5c724.tar.gz qemu-fd61a701f1de8e4c1d89b3716ba9ca749cf5c724.tar.bz2 |
job: Add job_delete()
This moves freeing the Job object and its fields from block_job_unref()
to job_delete().
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'blockjob.c')
-rw-r--r-- | blockjob.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -261,9 +261,8 @@ void block_job_unref(BlockJob *job) block_job_detach_aio_context, job); blk_unref(job->blk); error_free(job->blocker); - g_free(job->job.id); assert(!timer_pending(&job->sleep_timer)); - g_free(job); + job_delete(&job->job); } } |