From: Simon McVittie Date: Thu, 27 Oct 2016 11:31:52 +0000 (+0100) Subject: ot_remote_builtin_show_url: autofree context X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~44^2~15 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=53f1fabfbe679f123c6cf66053e894a479c57314;p=ostree.git ot_remote_builtin_show_url: autofree context Leak found with valgrind memcheck. Signed-off-by: Simon McVittie Closes: #556 Approved by: cgwalters --- 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;