[evolution-data-server] Fix a memory leak in camel_util_get_directory_variants()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Fix a memory leak in camel_util_get_directory_variants()
- Date: Thu, 11 Mar 2021 09:02:44 +0000 (UTC)
commit 2ce5132bf2cfc469b79472640ba9bdfe455e8144
Author: Milan Crha <mcrha redhat com>
Date: Thu Mar 11 10:01:50 2021 +0100
Fix a memory leak in camel_util_get_directory_variants()
Forgotten free of the hash table.
src/camel/camel.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/camel/camel.c b/src/camel/camel.c
index e10f9e463..4f71f13f9 100644
--- a/src/camel/camel.c
+++ b/src/camel/camel.c
@@ -513,5 +513,7 @@ camel_util_get_directory_variants (const gchar *main_path,
g_ptr_array_sort_with_data (paths, sort_paths_by_index, paths_hash);
+ g_hash_table_destroy (paths_hash);
+
return paths;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]