storage: conf: Fix memory leak in encryption parsing

This commit is contained in:
Cole Robinson 2009-10-28 14:22:45 -04:00
parent 4c44cdcce3
commit 030db0c2ec

View File

@ -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"));