mirror of https://gitee.com/openkylin/qemu.git
tests-blockjob: Use error_free_or_abort()
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20191204093625.14836-19-armbru@redhat.com>
This commit is contained in:
parent
d402c98396
commit
0cf9e2b4f8
|
@ -48,9 +48,8 @@ static BlockJob *mk_job(BlockBackend *blk, const char *id,
|
|||
g_assert_cmpstr(job->job.id, ==, blk_name(blk));
|
||||
}
|
||||
} else {
|
||||
g_assert_nonnull(err);
|
||||
error_free_or_abort(&err);
|
||||
g_assert_null(job);
|
||||
error_free(err);
|
||||
}
|
||||
|
||||
return job;
|
||||
|
|
Loading…
Reference in New Issue