]> xenbits.xensource.com Git - libvirt.git/commitdiff
virDomainDefParseXML: Free @tmp
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 4 Aug 2017 13:10:08 +0000 (15:10 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 7 Aug 2017 08:44:06 +0000 (10:44 +0200)
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>
src/conf/domain_conf.c

index 8168dc52fa756acf68b6e5d21287ecb20e334bcb..3cdb5e348676778ddcbe2dee11c21c14e9f80de3 100644 (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;