From 030db0c2ece27f980cd73b04aaa0247e14c99896 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Wed, 28 Oct 2009 14:22:45 -0400 Subject: [PATCH] storage: conf: Fix memory leak in encryption parsing --- src/conf/storage_encryption_conf.c | 1 + 1 file changed, 1 insertion(+) 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"));