[libvirt PATCH 2/3] qemu: qemuDomainObjClearJob: use g_clear_pointer
Ján Tomko
jtomko at redhat.com
Mon Sep 14 11:49:55 UTC 2020
The function used g_clear_pointer for all but one pointer.
Signed-off-by: Ján Tomko <jtomko at redhat.com>
---
src/qemu/qemu_domainjob.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/qemu/qemu_domainjob.c b/src/qemu/qemu_domainjob.c
index 9f76f1ef04..e5910a11a1 100644
--- a/src/qemu/qemu_domainjob.c
+++ b/src/qemu/qemu_domainjob.c
@@ -250,7 +250,7 @@ qemuDomainObjClearJob(qemuDomainJobObjPtr job)
{
qemuDomainObjResetJob(job);
qemuDomainObjResetAsyncJob(job);
- job->cb->freeJobPrivate(job->privateData);
+ g_clear_pointer(&job->privateData, job->cb->freeJobPrivate);
g_clear_pointer(&job->current, qemuDomainJobInfoFree);
g_clear_pointer(&job->completed, qemuDomainJobInfoFree);
virCondDestroy(&job->cond);
--
2.26.2
More information about the libvir-list
mailing list