plug leak in pop3_top_recv
authorOliver Haertel <o.h.a@gmx.net>
Sun, 27 Oct 2002 16:03:21 +0000 (16:03 +0000)
committerOliver Haertel <o.h.a@gmx.net>
Sun, 27 Oct 2002 16:03:21 +0000 (16:03 +0000)
ChangeLog.claws
configure.in
src/pop.c

index 727f84a3ffdf99d1b83cdb49d3b3f9f7f9ff516a..178909457b690d098db6c7116cccae829c6cb3c2 100644 (file)
@@ -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
index 51a21431b554007a247b6df85524571df1957be3..a8ee10f201d0cbb4f692442e3662a8e20f5375b8 100644 (file)
@@ -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
index 488965b2042b8258106e4c44dcd88cd83e5af7a2..13e31c0de57be38c554071d0b3a4eb6fe34cff70 100644 (file)
--- 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); 
        }
 }