Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Feb 2009 16:10:04 +0200
From:      Artis Caune <artis.caune@gmail.com>
To:        Max Laier <max@love2party.net>
Cc:        beck@openbsd.org, samm@os2.kiev.ua, freebsd-pf@freebsd.org
Subject:   Re: openbsd spamd is leaking memory?
Message-ID:  <9e20d71e0902250610l62a42a99t5b9683aefb08c7cf@mail.gmail.com>
In-Reply-To: <200902251442.43794.max@love2party.net>
References:  <9e20d71e0902250435y6e090fb0rc138233242fe7d60@mail.gmail.com> <200902251442.43794.max@love2party.net>

next in thread | previous in thread | raw e-mail | index | archive | help
2009/2/25 Max Laier <max@love2party.net>:
> Hello Artis,
>
> looks like a valid catch to me.  I'm CC'ing the upstream maintainer (Bob,
> that's you, right?)  From a quick glance there is also a minor leak in
> readsuffixlists in the goto bad case.
>


I'm running spamd with this patch more than 2h and no leaks :)



--- grey.c.orig 2008-12-07 23:12:52.000000000 +0200
+++ grey.c      2009-02-25 15:22:48.000000000 +0200
@@ -512,7 +512,8 @@
               dbc->act = 0;
               dbc->dsiz = 0;
               SLIST_REMOVE_HEAD(&db_changes, entry);
-
+        free(dbc);
+        dbc = NULL;
       }
       return(ret);
 }






-- 
regards,
Artis Caune

<----. CCNA | BSDA
<----|====================
<----' didii FreeBSD



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9e20d71e0902250610l62a42a99t5b9683aefb08c7cf>