1
0
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:
Ján Tomko 2021-08-12 11:45:03 +02:00
parent 7dd72490f6
commit 4de7ccc4d8

View File

@ -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. */