]> xenbits.xensource.com Git - libvirt.git/commitdiff
storage: conf: Fix memory leak in encryption parsing
authorCole Robinson <crobinso@redhat.com>
Wed, 28 Oct 2009 18:22:45 +0000 (14:22 -0400)
committerCole Robinson <crobinso@redhat.com>
Tue, 3 Nov 2009 21:46:54 +0000 (16:46 -0500)
src/conf/storage_encryption_conf.c

index b97b9894f7df539f41e15c6ef3a19f90317f5497..a329622377f7ff93ecf69e3188f02284d7d4472f 100644 (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"));