[evolution-mapi] Avoid possible memory leak
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-mapi] Avoid possible memory leak
- Date: Mon, 25 Jun 2012 16:24:05 +0000 (UTC)
commit 55494cd74e641d4c7c243ac7e01f7fca831ed8ff
Author: Milan Crha <mcrha redhat com>
Date: Mon Jun 25 18:22:36 2012 +0200
Avoid possible memory leak
src/camel/camel-mapi-store.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/camel/camel-mapi-store.c b/src/camel/camel-mapi-store.c
index 2a42fcc..a2a504f 100644
--- a/src/camel/camel-mapi-store.c
+++ b/src/camel/camel-mapi-store.c
@@ -2664,6 +2664,10 @@ mapi_update_hash_table_type (CamelMapiStore *store, const gchar *full_name, guin
if (full_name && folder_type) {
if (!g_hash_table_lookup (priv->container_hash, full_name))
g_hash_table_insert (priv->container_hash, g_strdup (full_name), folder_type);
+ else
+ g_free (folder_type);
+ } else {
+ g_free (folder_type);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]