From 8ce8d591b036391c5907286099920a4735b004de Mon Sep 17 00:00:00 2001 From: Matt Coleman Date: Thu, 5 Nov 2020 22:32:39 -0500 Subject: [PATCH] domain_conf: use g_free() in virDomainPostParseCheckISCSIPath() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Matt Coleman Reviewed-by: Ján Tomko Signed-off-by: Ján Tomko --- 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 498a8b6ef0..282e3fbc6a 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -5077,7 +5077,7 @@ virDomainPostParseCheckISCSIPath(char **srcpath) return; path = g_strdup_printf("%s/0", *srcpath); - VIR_FREE(*srcpath); + g_free(*srcpath); *srcpath = g_steal_pointer(&path); } -- 2.47.2