From: Colin Leroy Date: Tue, 25 Jan 2011 13:08:56 +0000 (+0000) Subject: 2011-01-25 [colin] 3.7.8cvs45 X-Git-Tag: REL_3_7_9~34 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=f26aa613c426ed26a45518dacfeff47ccb399fef 2011-01-25 [colin] 3.7.8cvs45 * src/pop.c Fix leak on error path --- diff --git a/ChangeLog b/ChangeLog index 7acb5304b..d174c0607 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-01-25 [colin] 3.7.8cvs45 + + * src/pop.c + Fix leak on error path + 2011-01-23 [mones] 3.7.8cvs44 * manual/es/advanced.xml diff --git a/PATCHSETS b/PATCHSETS index 830e18b4f..77f515371 100644 --- a/PATCHSETS +++ b/PATCHSETS @@ -4118,3 +4118,4 @@ ( cvs diff -u -r 1.1.2.54 -r 1.1.2.55 manual/advanced.xml; cvs diff -u -r 1.204.2.198 -r 1.204.2.199 src/prefs_common.c; cvs diff -u -r 1.103.2.130 -r 1.103.2.131 src/prefs_common.h; cvs diff -u -r 1.96.2.229 -r 1.96.2.230 src/textview.c; ) > 3.7.8cvs42.patchset ( cvs diff -u -r 1.4.2.77 -r 1.4.2.78 src/gtk/about.c; ) > 3.7.8cvs43.patchset ( cvs diff -u -r 1.1.2.16 -r 1.1.2.17 manual/es/advanced.xml; ) > 3.7.8cvs44.patchset +( cvs diff -u -r 1.56.2.66 -r 1.56.2.67 src/pop.c; ) > 3.7.8cvs45.patchset diff --git a/configure.ac b/configure.ac index 38e2b6722..30594e1df 100644 --- a/configure.ac +++ b/configure.ac @@ -12,7 +12,7 @@ MINOR_VERSION=7 MICRO_VERSION=8 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=44 +EXTRA_VERSION=45 EXTRA_RELEASE= EXTRA_GTK2_VERSION= diff --git a/src/pop.c b/src/pop.c index ad2d2b4ab..35f0d40e6 100644 --- a/src/pop.c +++ b/src/pop.c @@ -664,9 +664,11 @@ gint pop3_write_uidl_list(Pop3Session *session) gchar *sanitized_uid = g_strdup(session->ac_prefs->userid); subst_for_filename(sanitized_uid); - - if (!session->uidl_is_valid) return 0; + if (!session->uidl_is_valid) { + g_free(sanitized_uid); + return 0; + } path = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, "uidl", G_DIR_SEPARATOR_S,