storage: conf: Fix memory leak in encryption parsing
This commit is contained in:
parent
4c44cdcce3
commit
030db0c2ec
@ -112,6 +112,7 @@ virStorageEncryptionSecretParse(virConnectPtr conn, xmlXPathContextPtr ctxt,
|
|||||||
uuidstr);
|
uuidstr);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
VIR_FREE(uuidstr);
|
||||||
} else {
|
} else {
|
||||||
virStorageReportError(conn, VIR_ERR_XML_ERROR, "%s",
|
virStorageReportError(conn, VIR_ERR_XML_ERROR, "%s",
|
||||||
_("missing volume encryption uuid"));
|
_("missing volume encryption uuid"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user