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); }