From afdc528c50f7a42a2566434ad49c69d51e8df962 Mon Sep 17 00:00:00 2001 From: Oliver Haertel Date: Sun, 27 Oct 2002 16:03:21 +0000 Subject: [PATCH] plug leak in pop3_top_recv --- ChangeLog.claws | 5 +++++ configure.in | 2 +- src/pop.c | 8 +++++++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ChangeLog.claws b/ChangeLog.claws index 727f84a3f..178909457 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -1,3 +1,8 @@ +2002-10-27 [oliver] 0.8.5claws56 + + * src/pop.c + plug leak in pop3_top_recv + 2002-10-26 [christoph] 0.8.5claws55 * src/folder.c diff --git a/configure.in b/configure.in index 51a21431b..a8ee10f20 100644 --- a/configure.in +++ b/configure.in @@ -11,7 +11,7 @@ MINOR_VERSION=8 MICRO_VERSION=5 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=claws55 +EXTRA_VERSION=claws56 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION dnl set $target diff --git a/src/pop.c b/src/pop.c index 488965b20..13e31c0de 100644 --- a/src/pop.c +++ b/src/pop.c @@ -475,9 +475,14 @@ gint pop3_top_recv(SockInfo *sock, gpointer data) if ( (write_val = recv_write_to_file(sock, filename)) < 0) { state->error_val = (write_val == -1 ? PS_IOERR : PS_SOCKET); + g_free(path); + g_free(filename); return -1; } - + + g_free(path); + g_free(filename); + pop3_sd_state(state, POP3_TOP_RECV, &next_state); if (state->cur_msg < state->count) { @@ -691,6 +696,7 @@ static void pop3_sd_new_header(Pop3State *state) state->ac_prefs->msg_list = g_slist_append(state->ac_prefs->msg_list, new_msg); + debug_print("received ?: msg %i, received: %i\n",new_msg->index, new_msg->received); } } -- 2.25.1