From: Christophe Fergeau Date: Thu, 21 Feb 2013 15:21:31 +0000 (+0100) Subject: conf: Don't leak 'ram' video property on error X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2ed7e7eedce671c6e3f13327e7bb50181a390a65;p=libvirt.git conf: Don't leak 'ram' video property on error It's only freed on normal returns from virDomainVideoDefParseXML, but not when erroring out. --- diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 258ee93705..0c75838bcc 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -7736,6 +7736,7 @@ virDomainVideoDefParseXML(const xmlNodePtr node, error: virDomainVideoDefFree(def); VIR_FREE(type); + VIR_FREE(ram); VIR_FREE(vram); VIR_FREE(heads); return NULL;