pull: Fix two minor memory leaks
This commit is contained in:
1 parent
34c49f0411
commit
35a1ff51d0
2 files changed
+2
No files matched your search
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user