domain_conf: use g_free() in virDomainPostParseCheckISCSIPath()

Signed-off-by: Matt Coleman <matt@datto.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Matt Coleman 2020-11-05 22:32:39 -05:00 committed by Ján Tomko
parent e15244a3c1
commit 8ce8d591b0

View File

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