[PATCH (pushed)] virStorageSourceClear: Clear 'vdpadev' field

Peter Krempa posted 1 patch 8 months, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/85205784e6296c74b42bf20d343c8f7d229f3632.1694589664.git.pkrempa@redhat.com
src/conf/storage_source_conf.c | 1 +
1 file changed, 1 insertion(+)
[PATCH (pushed)] virStorageSourceClear: Clear 'vdpadev' field
Posted by Peter Krempa 8 months, 2 weeks ago
Release memory for the recently added field.

Fixes: 1df106cc20a4cc6417cfbaf01860f465ec3dd915
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
---
 src/conf/storage_source_conf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/conf/storage_source_conf.c b/src/conf/storage_source_conf.c
index f57cb3241d..f7f62c3966 100644
--- a/src/conf/storage_source_conf.c
+++ b/src/conf/storage_source_conf.c
@@ -1143,6 +1143,7 @@ virStorageSourceClear(virStorageSource *def)
     VIR_FREE(def->path);
     VIR_FREE(def->fdgroup);
     VIR_FREE(def->volume);
+    VIR_FREE(def->vdpadev);
     VIR_FREE(def->snapshot);
     VIR_FREE(def->configFile);
     VIR_FREE(def->query);
-- 
2.41.0