[Commits] [SCM] claws branch, master, updated. 3.11.1-18-g434811f
miras at claws-mail.org
miras at claws-mail.org
Sat Nov 15 20:37:24 CET 2014
The branch, master has been updated
via 434811f2fb961f3d1d4d3f57631037573fe50c5b (commit)
from a2068001ee3f0a797968d8db474aca447cc22015 (commit)
Summary of changes:
src/ldif.c | 4 ++--
src/prefs_gtk.c | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 434811f2fb961f3d1d4d3f57631037573fe50c5b
Author: Michael Rasmussen <mir at datanom.net>
Date: Sat Nov 15 20:37:20 2014 +0100
fix a couple of memory leaks
diff --git a/src/ldif.c b/src/ldif.c
index 89f750b..5c57ad5 100644
--- a/src/ldif.c
+++ b/src/ldif.c
@@ -647,8 +647,8 @@ static void ldif_read_file( LdifFile *ldifFile, AddressCache *cache ) {
g_free(fullValue);
fullValue = out;
fullValue[len] = '\0';
- } else
- g_free(out);
+ }
+ g_free(out);
}
/* Base-64 encoded data */
/*
diff --git a/src/prefs_gtk.c b/src/prefs_gtk.c
index e141afd..dc7e5cf 100644
--- a/src/prefs_gtk.c
+++ b/src/prefs_gtk.c
@@ -400,6 +400,7 @@ gint prefs_write_param(PrefParam *param, FILE *fp)
g_snprintf(buf, sizeof(buf), "%s=!%s\n", param[i].name,
tmp ?
tmp : "");
+ g_free(tmp);
}
break;
default:
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list