From: Michal Privoznik Date: Tue, 12 Jul 2011 09:01:37 +0000 (+0800) Subject: domain_conf: Free temporary variable X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d50bb45;p=libvirt.git domain_conf: Free temporary variable * src/conf/domain_conf.c: caller must free returned value of virXPathString in useserial --- diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index d75a2669c1..bf2eadfe79 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -5739,6 +5739,7 @@ virDomainDefParseBootXML(xmlXPathContextPtr ctxt, } else { def->os.bios.useserial = VIR_DOMAIN_BIOS_USESERIAL_NO; } + VIR_FREE(useserial); } *bootCount = deviceBoot;