[libvirt] [PATCH] virStoragePoolDefFree: Free @def->refresh

Michal Privoznik posted 1 patch 5 years, 1 month ago
Test syntax-check passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/66bb371e8e76cc2863864923f0ef4e134996d8e1.1553013483.git.mprivozn@redhat.com
src/conf/storage_conf.c | 1 +
1 file changed, 1 insertion(+)
[libvirt] [PATCH] virStoragePoolDefFree: Free @def->refresh
Posted by Michal Privoznik 5 years, 1 month ago
In 669018bc9cb I've introduced def->refresh which might be
allocated by virStoragePoolDefRefreshParse() but is never freed.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
---

Pushed under trivial rule.

 src/conf/storage_conf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/conf/storage_conf.c b/src/conf/storage_conf.c
index b797a405f7..7dff566641 100644
--- a/src/conf/storage_conf.c
+++ b/src/conf/storage_conf.c
@@ -509,6 +509,7 @@ virStoragePoolDefFree(virStoragePoolDefPtr def)
 
     VIR_FREE(def->target.path);
     VIR_FREE(def->target.perms.label);
+    VIR_FREE(def->refresh);
     if (def->namespaceData && def->ns.free)
         (def->ns.free)(def->namespaceData);
     VIR_FREE(def);
-- 
2.19.2

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list