[libvirt PATCH] vsh: steal pointer in vshEditWriteToTempFile

Ján Tomko jtomko at redhat.com
Thu Aug 12 11:12:08 UTC 2021


Fixes: 13896b5ad1d7f157273b6e49106df1f33958a9ed
Signed-off-by: Ján Tomko <jtomko at redhat.com>
---
Pushed as trivial. Ears of shame were applied.

 tools/vsh.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/vsh.c b/tools/vsh.c
index f9600bafba..96b3ced0ca 100644
--- a/tools/vsh.c
+++ b/tools/vsh.c
@@ -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. */
-- 
2.31.1




More information about the libvir-list mailing list