From 35a1ff51d0edd5fb7b1ed9b24b774c4ae71d770e Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Sun, 23 Sep 2012 17:32:11 -0400 Subject: [PATCH] pull: Fix two minor memory leaks --- src/ostree/ostree-fetcher.c | 1 + src/ostree/ostree-pull.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/ostree/ostree-fetcher.c b/src/ostree/ostree-fetcher.c index 3ef6e7e7..bf6421a5 100644 --- a/src/ostree/ostree-fetcher.c +++ b/src/ostree/ostree-fetcher.c @@ -94,6 +94,7 @@ ostree_fetcher_finalize (GObject *object) self = OSTREE_FETCHER (object); g_clear_object (&self->session); + g_clear_object (&self->tmpdir); g_hash_table_destroy (self->sending_messages); g_hash_table_destroy (self->message_to_request); diff --git a/src/ostree/ostree-pull.c b/src/ostree/ostree-pull.c index 7122f5b0..b00c9d27 100644 --- a/src/ostree/ostree-pull.c +++ b/src/ostree/ostree-pull.c @@ -1013,6 +1013,7 @@ load_remote_repo_config (OtPullData *pull_data, ot_transfer_out_value (out_keyfile, &ret_keyfile); out: g_clear_pointer (&ret_keyfile, (GDestroyNotify) g_key_file_unref); + g_clear_pointer (&target_uri, (GDestroyNotify) soup_uri_free); return ret; }