mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: Remove need for qemuMonitorIOThreadInfoFree
Replace with just VIR_FREE.
This commit is contained in:
parent
69b16513a5
commit
b515339fe7
@ -5950,7 +5950,7 @@ qemuDomainGetIOThreadsLive(virQEMUDriverPtr driver,
|
|||||||
}
|
}
|
||||||
if (iothreads) {
|
if (iothreads) {
|
||||||
for (i = 0; i < niothreads; i++)
|
for (i = 0; i < niothreads; i++)
|
||||||
qemuMonitorIOThreadInfoFree(iothreads[i]);
|
VIR_FREE(iothreads[i]);
|
||||||
VIR_FREE(iothreads);
|
VIR_FREE(iothreads);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -6330,7 +6330,7 @@ qemuDomainHotplugAddIOThread(virQEMUDriverPtr driver,
|
|||||||
cleanup:
|
cleanup:
|
||||||
if (new_iothreads) {
|
if (new_iothreads) {
|
||||||
for (idx = 0; idx < new_niothreads; idx++)
|
for (idx = 0; idx < new_niothreads; idx++)
|
||||||
qemuMonitorIOThreadInfoFree(new_iothreads[idx]);
|
VIR_FREE(new_iothreads[idx]);
|
||||||
VIR_FREE(new_iothreads);
|
VIR_FREE(new_iothreads);
|
||||||
}
|
}
|
||||||
VIR_FREE(mem_mask);
|
VIR_FREE(mem_mask);
|
||||||
@ -6416,7 +6416,7 @@ qemuDomainHotplugDelIOThread(virQEMUDriverPtr driver,
|
|||||||
cleanup:
|
cleanup:
|
||||||
if (new_iothreads) {
|
if (new_iothreads) {
|
||||||
for (idx = 0; idx < new_niothreads; idx++)
|
for (idx = 0; idx < new_niothreads; idx++)
|
||||||
qemuMonitorIOThreadInfoFree(new_iothreads[idx]);
|
VIR_FREE(new_iothreads[idx]);
|
||||||
VIR_FREE(new_iothreads);
|
VIR_FREE(new_iothreads);
|
||||||
}
|
}
|
||||||
virDomainAuditIOThread(vm, orig_niothreads, new_niothreads,
|
virDomainAuditIOThread(vm, orig_niothreads, new_niothreads,
|
||||||
|
@ -3813,15 +3813,6 @@ qemuMonitorGetIOThreads(qemuMonitorPtr mon,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
qemuMonitorIOThreadInfoFree(qemuMonitorIOThreadInfoPtr iothread)
|
|
||||||
{
|
|
||||||
if (!iothread)
|
|
||||||
return;
|
|
||||||
VIR_FREE(iothread);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* qemuMonitorGetMemoryDeviceInfo:
|
* qemuMonitorGetMemoryDeviceInfo:
|
||||||
* @mon: pointer to the monitor
|
* @mon: pointer to the monitor
|
||||||
|
@ -883,8 +883,6 @@ struct _qemuMonitorIOThreadInfo {
|
|||||||
int qemuMonitorGetIOThreads(qemuMonitorPtr mon,
|
int qemuMonitorGetIOThreads(qemuMonitorPtr mon,
|
||||||
qemuMonitorIOThreadInfoPtr **iothreads);
|
qemuMonitorIOThreadInfoPtr **iothreads);
|
||||||
|
|
||||||
void qemuMonitorIOThreadInfoFree(qemuMonitorIOThreadInfoPtr iothread);
|
|
||||||
|
|
||||||
typedef struct _qemuMonitorMemoryDeviceInfo qemuMonitorMemoryDeviceInfo;
|
typedef struct _qemuMonitorMemoryDeviceInfo qemuMonitorMemoryDeviceInfo;
|
||||||
typedef qemuMonitorMemoryDeviceInfo *qemuMonitorMemoryDeviceInfoPtr;
|
typedef qemuMonitorMemoryDeviceInfo *qemuMonitorMemoryDeviceInfoPtr;
|
||||||
|
|
||||||
|
@ -6518,7 +6518,7 @@ qemuMonitorJSONGetIOThreads(qemuMonitorPtr mon,
|
|||||||
cleanup:
|
cleanup:
|
||||||
if (ret < 0 && infolist) {
|
if (ret < 0 && infolist) {
|
||||||
for (i = 0; i < n; i++)
|
for (i = 0; i < n; i++)
|
||||||
qemuMonitorIOThreadInfoFree(infolist[i]);
|
VIR_FREE(infolist[i]);
|
||||||
VIR_FREE(infolist);
|
VIR_FREE(infolist);
|
||||||
}
|
}
|
||||||
virJSONValueFree(cmd);
|
virJSONValueFree(cmd);
|
||||||
|
@ -2265,7 +2265,7 @@ qemuProcessDetectIOThreadPIDs(virQEMUDriverPtr driver,
|
|||||||
cleanup:
|
cleanup:
|
||||||
if (iothreads) {
|
if (iothreads) {
|
||||||
for (i = 0; i < niothreads; i++)
|
for (i = 0; i < niothreads; i++)
|
||||||
qemuMonitorIOThreadInfoFree(iothreads[i]);
|
VIR_FREE(iothreads[i]);
|
||||||
VIR_FREE(iothreads);
|
VIR_FREE(iothreads);
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -2295,7 +2295,7 @@ testQemuMonitorJSONGetIOThreads(const void *data)
|
|||||||
cleanup:
|
cleanup:
|
||||||
qemuMonitorTestFree(test);
|
qemuMonitorTestFree(test);
|
||||||
for (i = 0; i < ninfo; i++)
|
for (i = 0; i < ninfo; i++)
|
||||||
qemuMonitorIOThreadInfoFree(info[i]);
|
VIR_FREE(info[i]);
|
||||||
VIR_FREE(info);
|
VIR_FREE(info);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user