1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-23 21:34:54 +03:00

virDomainDefParseXML: Free @tmp

When parsing <ioapic> feature we're using @tmp to store some
temporary string but never free it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Michal Privoznik 2017-08-04 15:10:08 +02:00
parent 5619c93ce7
commit 65cb40a07e

View File

@ -17892,6 +17892,7 @@ virDomainDefParseXML(xmlDocPtr xml,
}
def->ioapic = value;
def->features[val] = VIR_TRISTATE_SWITCH_ON;
VIR_FREE(tmp);
}
ctxt->node = node;
break;