mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
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:
parent
e15244a3c1
commit
8ce8d591b0
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user