summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2012-09-23 17:32:11 -0400
committerColin Walters <walters@verbum.org>2012-09-23 17:32:11 -0400
commit35a1ff51d0edd5fb7b1ed9b24b774c4ae71d770e (patch)
tree60463cad46584682fb67cd11a9d79d0dccd77745
parent34c49f04118583ce2ddd9acac8babf8a59c50719 (diff)
downloadostree-35a1ff51d0edd5fb7b1ed9b24b774c4ae71d770e.tar.gz
pull: Fix two minor memory leaks
-rw-r--r--src/ostree/ostree-fetcher.c1
-rw-r--r--src/ostree/ostree-pull.c1
2 files changed, 2 insertions, 0 deletions
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;
}