mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
qemuHotplugDiskSourceDataFree: also free backends
Also free the backends array, not just its members.
Fixes: d3f9dda2c9
Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
c264cb1b1c
commit
e0befb78b1
@ -512,6 +512,7 @@ qemuHotplugDiskSourceDataFree(qemuHotplugDiskSourceDataPtr data)
|
||||
for (i = 0; i < data->nbackends; i++)
|
||||
qemuBlockStorageSourceAttachDataFree(data->backends[i]);
|
||||
|
||||
VIR_FREE(data->backends);
|
||||
VIR_FREE(data);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user