From: Cole Robinson Date: Wed, 28 Oct 2009 18:22:45 +0000 (-0400) Subject: storage: conf: Fix memory leak in encryption parsing X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=030db0c2ece27f980cd73b04aaa0247e14c99896;p=libvirt.git storage: conf: Fix memory leak in encryption parsing --- diff --git a/src/conf/storage_encryption_conf.c b/src/conf/storage_encryption_conf.c index b97b9894f7..a329622377 100644 --- a/src/conf/storage_encryption_conf.c +++ b/src/conf/storage_encryption_conf.c @@ -112,6 +112,7 @@ virStorageEncryptionSecretParse(virConnectPtr conn, xmlXPathContextPtr ctxt, uuidstr); goto cleanup; } + VIR_FREE(uuidstr); } else { virStorageReportError(conn, VIR_ERR_XML_ERROR, "%s", _("missing volume encryption uuid"));