[evolution-ews/gnome-41] Addressbook: Fix two memory leaks
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews/gnome-41] Addressbook: Fix two memory leaks
- Date: Mon, 27 Sep 2021 13:08:28 +0000 (UTC)
commit 756664f934d178de70e5ebfa34881a7918402973
Author: Milan Crha <mcrha redhat com>
Date: Mon Sep 27 15:07:18 2021 +0200
Addressbook: Fix two memory leaks
src/EWS/addressbook/e-book-backend-ews.c | 1 +
src/EWS/common/e-ews-item.c | 1 +
2 files changed, 2 insertions(+)
---
diff --git a/src/EWS/addressbook/e-book-backend-ews.c b/src/EWS/addressbook/e-book-backend-ews.c
index 7cb948d0..a87bcb96 100644
--- a/src/EWS/addressbook/e-book-backend-ews.c
+++ b/src/EWS/addressbook/e-book-backend-ews.c
@@ -3071,6 +3071,7 @@ ebb_ews_check_gal_changes (EBookBackendEws *bbews,
g_hash_table_destroy (data.sha1s);
g_hash_table_destroy (data.uids);
+ g_clear_object (&eod);
if (local_error)
g_propagate_error (error, local_error);
diff --git a/src/EWS/common/e-ews-item.c b/src/EWS/common/e-ews-item.c
index c3a32b29..9705523f 100644
--- a/src/EWS/common/e-ews-item.c
+++ b/src/EWS/common/e-ews-item.c
@@ -313,6 +313,7 @@ ews_free_contact_fields (struct _EEwsContactFields *con_fields)
g_free (cn->nick_name);
g_free (cn->yomi_first_name);
g_free (cn->yomi_last_name);
+ g_free (cn);
}
if (con_fields->email_addresses)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]