[PATCH 03/28] domain_conf: use g_free() in virDomainPostParseCheckISCSIPath()

Matt Coleman mcoleman at datto.com
Fri Nov 6 03:32:39 UTC 2020


Signed-off-by: Matt Coleman <matt at datto.com>
---
 src/conf/domain_conf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index ce49905360..a64dec8df4 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -5078,7 +5078,7 @@ virDomainPostParseCheckISCSIPath(char **srcpath)
         return;
 
     path = g_strdup_printf("%s/0", *srcpath);
-    VIR_FREE(*srcpath);
+    g_free(*srcpath);
     *srcpath = g_steal_pointer(&path);
 }
 
-- 
2.27.0





More information about the libvir-list mailing list