qemu: blockjob: Use 'g_free' in qemuBlockJobDataDispose

Prepare the function for addition of new members to clean.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2019-10-18 15:45:43 +02:00
parent 0b82b13adc
commit 509c6e5140

View File

@ -82,8 +82,8 @@ qemuBlockJobDataDispose(void *obj)
if (job->type == QEMU_BLOCKJOB_TYPE_CREATE)
virObjectUnref(job->data.create.src);
VIR_FREE(job->name);
VIR_FREE(job->errmsg);
g_free(job->name);
g_free(job->errmsg);
}