summaryrefslogtreecommitdiff
path: root/src/ostree/ot-editor.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2015-05-04 17:58:26 -0400
committerMatthew Barnes <mbarnes@redhat.com>2015-05-06 21:50:17 -0400
commit7a62d64968160d27cbd90aeeed754eb185135f91 (patch)
treeb6bc24af82d7ac03f42ec58f15507caa8cca869f /src/ostree/ot-editor.c
parent4f33515316a374867e093171f219cbd6e5e4f5bd (diff)
downloadostree-7a62d64968160d27cbd90aeeed754eb185135f91.tar.gz
Use g_autofree instead of gs_free
Diffstat (limited to 'src/ostree/ot-editor.c')
-rw-r--r--src/ostree/ot-editor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ostree/ot-editor.c b/src/ostree/ot-editor.c
index 05fbe1f1..b84f6872 100644
--- a/src/ostree/ot-editor.c
+++ b/src/ostree/ot-editor.c
@@ -69,7 +69,7 @@ ot_editor_prompt (OstreeRepo *repo,
GOutputStream *output;
const char *editor;
char *ret = NULL;
- gs_free gchar *args = NULL;
+ g_autofree char *args = NULL;
editor = get_editor ();
if (editor == NULL)
@@ -89,7 +89,7 @@ ot_editor_prompt (OstreeRepo *repo,
goto out;
{
- gs_free gchar *quoted_file = g_shell_quote (gs_file_get_path_cached (file));
+ g_autofree char *quoted_file = g_shell_quote (gs_file_get_path_cached (file));
args = g_strconcat (editor, " ", quoted_file, NULL);
}
ctx = gs_subprocess_context_newv ("/bin/sh", "-c", args, NULL);