summaryrefslogtreecommitdiff
path: root/src/ostree/ot-builtin-remote.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2012-04-09 15:03:53 -0400
committerColin Walters <walters@verbum.org>2012-04-09 15:57:46 -0400
commit394fe7547172f259411b0e31ccb9a3ab27f93b75 (patch)
tree078480a8ebd04db0b8c2e0dec9a0670aa4d696a0 /src/ostree/ot-builtin-remote.c
parent8b6bf09d7acf58282e59bfe566bdbb17d2e8700d (diff)
downloadostree-394fe7547172f259411b0e31ccb9a3ab27f93b75.tar.gz
core: Port builtins to local alloc macros
Diffstat (limited to 'src/ostree/ot-builtin-remote.c')
-rw-r--r--src/ostree/ot-builtin-remote.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ostree/ot-builtin-remote.c b/src/ostree/ot-builtin-remote.c
index 8cb47e25..c078ab99 100644
--- a/src/ostree/ot-builtin-remote.c
+++ b/src/ostree/ot-builtin-remote.c
@@ -46,11 +46,11 @@ ostree_builtin_remote (int argc, char **argv, GFile *repo_path, GError **error)
{
GOptionContext *context;
gboolean ret = FALSE;
- OstreeRepo *repo = NULL;
const char *op;
- GKeyFile *config = NULL;
- GPtrArray *branches = NULL;
guint i;
+ ot_lobj OstreeRepo *repo = NULL;
+ ot_lptrarray GPtrArray *branches = NULL;
+ GKeyFile *config = NULL;
context = g_option_context_new ("OPERATION [args] - Control remote repository configuration");
g_option_context_add_main_entries (context, options, NULL);
@@ -104,11 +104,9 @@ ostree_builtin_remote (int argc, char **argv, GFile *repo_path, GError **error)
ret = TRUE;
out:
- ot_clear_ptrarray (&branches);
if (context)
g_option_context_free (context);
if (config)
g_key_file_free (config);
- g_clear_object (&repo);
return ret;
}