changeset 233:91c91d102564 noffle

[svn] * src/client.c: Fix memory leak in filter code.
author bears
date Fri, 08 Feb 2002 17:06:25 +0000
parents 6767c6f3218f
children a16ee4b00b66
files src/client.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/client.c	Fri Feb 08 17:06:01 2002 +0000
+++ b/src/client.c	Fri Feb 08 17:06:25 2002 +0000
@@ -1,7 +1,7 @@
 /*
   client.c
 
-  $Id: client.c 358 2001-12-18 15:27:08Z mirkol $
+  $Id: client.c 364 2002-02-08 17:06:25Z bears $
 */
 
 #if HAVE_CONFIG_H
@@ -1022,7 +1022,10 @@
 
 	    action = Flt_checkFilters( grp, p, ov, mode );
 	    if ( action == FILTER_DISCARD )
+            {
+                del_Over( ov );
 		continue;
+            }
             Cont_app( ov );
             prepareEntry( ov );
             if ( action == FILTER_FULL
@@ -1031,6 +1034,7 @@
                 Req_add( client.serv, msgId );
                 ++cntMarked;
             }
+            del_Over( ov );
         }
         Grp_setRmtNext( client.grp, rmtNumb + 1 );
     }