talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 434811f2fb961f3d1d4d3f57631037573fe50c5b
parent a2068001ee3f0a797968d8db474aca447cc22015
Author: Michael Rasmussen <mir@datanom.net>
Date:   Sat, 15 Nov 2014 20:37:20 +0100

fix a couple of memory leaks

Diffstat:
Msrc/ldif.c | 4++--
Msrc/prefs_gtk.c | 1+
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git 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 @@ -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: