vsh: steal pointer in vshEditWriteToTempFile

Fixes: 13896b5ad1
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. */