ot_remote_builtin_show_url: autofree context

Leak found with valgrind memcheck.

Signed-off-by: Simon McVittie <smcv@debian.org>

Closes: #556
Approved by: cgwalters
This commit is contained in:
Simon McVittie
2016-10-27 12:31:52 +01:00
committed by Atomic Bot
parent 1fc2a1202e
commit 53f1fabfbe

View File

@ -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;