From 65cb40a07e8180534d9c24bfd89d908600911b87 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Fri, 4 Aug 2017 15:10:08 +0200 Subject: [PATCH] virDomainDefParseXML: Free @tmp When parsing feature we're using @tmp to store some temporary string but never free it. Signed-off-by: Michal Privoznik --- src/conf/domain_conf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 8168dc52fa..3cdb5e3486 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -17892,6 +17892,7 @@ virDomainDefParseXML(xmlDocPtr xml, } def->ioapic = value; def->features[val] = VIR_TRISTATE_SWITCH_ON; + VIR_FREE(tmp); } ctxt->node = node; break; -- GitLab