[ostree] pull: Fix two minor memory leaks



commit 35a1ff51d0edd5fb7b1ed9b24b774c4ae71d770e
Author: Colin Walters <walters verbum org>
Date:   Sun Sep 23 17:32:11 2012 -0400

    pull: Fix two minor memory leaks

 src/ostree/ostree-fetcher.c |    1 +
 src/ostree/ostree-pull.c    |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/ostree/ostree-fetcher.c b/src/ostree/ostree-fetcher.c
index 3ef6e7e..bf6421a 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 7122f5b..b00c9d2 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;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]