mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 06:50:22 +03:00
domain_conf: Don't leak def->os.firmwareFeatures
The firmwareFeatures member of virDomainOSDef struct is allocated in virDomainDefParseBootFirmwareOptions() but never freed. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
77f8e48fc3
commit
c116b94814
@ -3532,6 +3532,7 @@ virDomainOSDefClear(virDomainOSDef *os)
|
||||
{
|
||||
size_t i;
|
||||
|
||||
g_free(os->firmwareFeatures);
|
||||
g_free(os->machine);
|
||||
g_free(os->init);
|
||||
for (i = 0; os->initargv && os->initargv[i]; i++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user