[evolution-data-server] Fix memory leaks found by clang static analyzer
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Fix memory leaks found by clang static analyzer
- Date: Thu, 6 Oct 2022 13:02:11 +0000 (UTC)
commit 8be7e44fa0691aab8b32cda9df22625035312f38
Author: Дилян Палаузов <git-dpa aegee org>
Date: Thu Oct 6 13:01:52 2022 +0000
Fix memory leaks found by clang static analyzer
src/addressbook/libebook/e-book-client-view.c | 1 +
.../evolution-source-registry-migrate-sources.c | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/addressbook/libebook/e-book-client-view.c b/src/addressbook/libebook/e-book-client-view.c
index 62b06d548..6b4e6b6d2 100644
--- a/src/addressbook/libebook/e-book-client-view.c
+++ b/src/addressbook/libebook/e-book-client-view.c
@@ -328,6 +328,7 @@ direct_contacts_query (const gchar * const *uids)
query = e_book_query_or (len, qs, TRUE);
sexp = e_book_query_to_string (query);
e_book_query_unref (query);
+ g_free (qs);
return sexp;
}
diff --git a/src/services/evolution-source-registry/evolution-source-registry-migrate-sources.c
b/src/services/evolution-source-registry/evolution-source-registry-migrate-sources.c
index a2998f68f..642eb2056 100644
--- a/src/services/evolution-source-registry/evolution-source-registry-migrate-sources.c
+++ b/src/services/evolution-source-registry/evolution-source-registry-migrate-sources.c
@@ -1137,7 +1137,7 @@ migrate_parse_url_foreach (GQuark key_id,
gpointer user_data)
{
const gchar *param_name;
- const gchar *key;
+ gchar *key;
struct {
GKeyFile *key_file;
@@ -1158,6 +1158,7 @@ migrate_parse_url_foreach (GQuark key_id,
foreach_data->key_file,
foreach_data->group_name,
key, value);
+ g_free (key);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]