diff options
author | Ondrej Holy <oholy@redhat.com> | 2019-04-30 10:32:30 +0200 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2019-04-30 11:03:16 +0200 |
commit | 04c44b91ea6fbadc384070085dc5dfa22710b5c8 (patch) | |
tree | 3f978584eec3760e4e84a0074f9c277d549504d8 /daemon | |
parent | a021631a2509ca84b54ed399819a0a4c5734ca70 (diff) | |
download | gvfs-04c44b91ea6fbadc384070085dc5dfa22710b5c8.tar.gz |
admin: Fix minor memory leak
GOptionContext is not released after `g_option_context_new ()` call.
Let's use `g_option_context_free ()` to fix this minor memory leak.
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/gvfsbackendadmin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/gvfsbackendadmin.c b/daemon/gvfsbackendadmin.c index 0f849008..db76aff9 100644 --- a/daemon/gvfsbackendadmin.c +++ b/daemon/gvfsbackendadmin.c @@ -968,7 +968,7 @@ g_vfs_backend_admin_pre_setup (int *argc, g_option_context_set_ignore_unknown_options (context, TRUE); g_option_context_add_main_entries (context, entries, GETTEXT_PACKAGE); g_option_context_parse (context, argc, argv, &error); - + g_option_context_free (context); if (error != NULL) g_error ("Can't parse arguments: %s", error->message); |