[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 21/21] Fix memory leak in storage encryption parser



* src/conf/storage_encryption_conf.c: Fix missing VIR_FREE
---
 src/conf/storage_encryption_conf.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/conf/storage_encryption_conf.c b/src/conf/storage_encryption_conf.c
index b97b989..f46e750 100644
--- a/src/conf/storage_encryption_conf.c
+++ b/src/conf/storage_encryption_conf.c
@@ -117,6 +117,7 @@ virStorageEncryptionSecretParse(virConnectPtr conn, xmlXPathContextPtr ctxt,
                               _("missing volume encryption uuid"));
         goto cleanup;
     }
+    VIR_FREE(uuidstr);
     ctxt->node = old_node;
     return ret;
 
-- 
1.6.2.5


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]