mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-24 06:03:52 +03:00
vsh: steal pointer in vshEditWriteToTempFile
Fixes: 13896b5ad1d7f157273b6e49106df1f33958a9ed 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…
x
Reference in New Issue
Block a user