mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 01:43:23 +00:00
qemuDomainHotplugAddIOThread: Automatically free virJSONValue
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
85d9a0e58a
commit
40a79d52b6
@ -5233,7 +5233,7 @@ qemuDomainHotplugAddIOThread(virQEMUDriver *driver,
|
|||||||
int new_niothreads = 0;
|
int new_niothreads = 0;
|
||||||
qemuMonitorIOThreadInfo **new_iothreads = NULL;
|
qemuMonitorIOThreadInfo **new_iothreads = NULL;
|
||||||
virDomainIOThreadIDDef *iothrid;
|
virDomainIOThreadIDDef *iothrid;
|
||||||
virJSONValue *props = NULL;
|
g_autoptr(virJSONValue) props = NULL;
|
||||||
bool threadAdded = false;
|
bool threadAdded = false;
|
||||||
bool objectAdded = false;
|
bool objectAdded = false;
|
||||||
|
|
||||||
@ -5316,7 +5316,6 @@ qemuDomainHotplugAddIOThread(virQEMUDriver *driver,
|
|||||||
}
|
}
|
||||||
virDomainAuditIOThread(vm, orig_niothreads, new_niothreads,
|
virDomainAuditIOThread(vm, orig_niothreads, new_niothreads,
|
||||||
"update", ret == 0);
|
"update", ret == 0);
|
||||||
virJSONValueFree(props);
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
exit_monitor:
|
exit_monitor:
|
||||||
|
Loading…
Reference in New Issue
Block a user