comparison src/client.c @ 240:fbff73fe5b40 noffle

[svn] * src/client.c: That wasn't a memory leak fixed on Feb 8th. That was a cockup cause by my forgetting that Cont_app takes ownership of an overview. Revert it and add comment to Cont_app. Spotted with the aid of valgrind. * src/post.c,src/pseudo.c * src/util.c: Fix out of bounds write bug spotted by valgrind. * src/database.c: Fix minor memory leak spotted by valgrind. Valgrind is at http://devel-home.kde.org/~sewardj/.
author bears
date Tue, 26 Feb 2002 17:13:31 +0000
parents 91c91d102564
children 93d5d8b098da
comparison
equal deleted inserted replaced
239:2b7ddb90d9b2 240:fbff73fe5b40
1 /* 1 /*
2 client.c 2 client.c
3 3
4 $Id: client.c 364 2002-02-08 17:06:25Z bears $ 4 $Id: client.c 371 2002-02-26 17:13:31Z bears $
5 */ 5 */
6 6
7 #if HAVE_CONFIG_H 7 #if HAVE_CONFIG_H
8 #include <config.h> 8 #include <config.h>
9 #endif 9 #endif
1024 if ( action == FILTER_DISCARD ) 1024 if ( action == FILTER_DISCARD )
1025 { 1025 {
1026 del_Over( ov ); 1026 del_Over( ov );
1027 continue; 1027 continue;
1028 } 1028 }
1029 Cont_app( ov ); 1029 Cont_app( ov ); /* Cont modules owns ov after this */
1030 prepareEntry( ov ); 1030 prepareEntry( ov );
1031 if ( action == FILTER_FULL 1031 if ( action == FILTER_FULL
1032 || ( action == FILTER_THREAD && needsMark( ref ) ) ) 1032 || ( action == FILTER_THREAD && needsMark( ref ) ) )
1033 { 1033 {
1034 Req_add( client.serv, msgId ); 1034 Req_add( client.serv, msgId );
1035 ++cntMarked; 1035 ++cntMarked;
1036 } 1036 }
1037 del_Over( ov );
1038 } 1037 }
1039 Grp_setRmtNext( client.grp, rmtNumb + 1 ); 1038 Grp_setRmtNext( client.grp, rmtNumb + 1 );
1040 } 1039 }
1041 if ( oldLast != Cont_last() ) 1040 if ( oldLast != Cont_last() )
1042 { 1041 {