mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
vsh: steal pointer in vshEditWriteToTempFile
Fixes: 13896b5ad1
Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
7dd72490f6
commit
4de7ccc4d8
@ -2377,7 +2377,7 @@ vshEditWriteToTempFile(vshControl *ctl, const char *doc)
|
||||
}
|
||||
|
||||
/* Temporary filename: caller frees. */
|
||||
return ret;
|
||||
return g_steal_pointer(&ret);
|
||||
}
|
||||
|
||||
/* Characters permitted in $EDITOR environment variable and temp filename. */
|
||||
|
Loading…
Reference in New Issue
Block a user