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:
parent
1fc2a1202e
commit
53f1fabfbe
|
|
@ -32,7 +32,7 @@ static GOptionEntry option_entries[] = {
|
||||||
gboolean
|
gboolean
|
||||||
ot_remote_builtin_show_url (int argc, char **argv, GCancellable *cancellable, GError **error)
|
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;
|
glnx_unref_object OstreeRepo *repo = NULL;
|
||||||
const char *remote_name;
|
const char *remote_name;
|
||||||
g_autofree char *remote_url = NULL;
|
g_autofree char *remote_url = NULL;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue