From 53f1fabfbe679f123c6cf66053e894a479c57314 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 27 Oct 2016 12:31:52 +0100 Subject: [PATCH] ot_remote_builtin_show_url: autofree context Leak found with valgrind memcheck. Signed-off-by: Simon McVittie Closes: #556 Approved by: cgwalters --- src/ostree/ot-remote-builtin-show-url.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ostree/ot-remote-builtin-show-url.c b/src/ostree/ot-remote-builtin-show-url.c index a4b447c8..401dfb0b 100644 --- a/src/ostree/ot-remote-builtin-show-url.c +++ b/src/ostree/ot-remote-builtin-show-url.c @@ -32,7 +32,7 @@ static GOptionEntry option_entries[] = { gboolean ot_remote_builtin_show_url (int argc, char **argv, GCancellable *cancellable, GError **error) { - GOptionContext *context; + g_autoptr(GOptionContext) context = NULL; glnx_unref_object OstreeRepo *repo = NULL; const char *remote_name; g_autofree char *remote_url = NULL;