commit f26aa613c426ed26a45518dacfeff47ccb399fef
parent d572969ab84d1fc929b208dbe2d6070813af3c53
Author: Colin Leroy <colin@colino.net>
Date: Tue, 25 Jan 2011 13:08:56 +0000
2011-01-25 [colin] 3.7.8cvs45
* src/pop.c
Fix leak on error path
Diffstat:
4 files changed, 11 insertions(+), 3 deletions(-)
diff --git 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
@@ -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
@@ -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
@@ -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,