openbsd spamd is leaking memory?
Max Laier
max at love2party.net
Wed Feb 25 11:50:07 PST 2009
On Wednesday 25 February 2009 15:10:04 Artis Caune wrote:
> 2009/2/25 Max Laier <max at 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.
Bob Beck has meanwhile committed the slightly more encompassing fix which can
be obtained via webcvs:
http://www.openbsd.org/cgi-
bin/cvsweb/src/libexec/spamd/grey.c.diff?r1=1.45;r2=1.46
Alex, do you have time to roll a new release or would you prefer the patch
applied via the ports patch facilities?
> 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);
> }
--
/"\ Best regards, | mlaier at freebsd.org
\ / Max Laier | ICQ #67774661
X http://pf4freebsd.love2party.net/ | mlaier at EFnet
/ \ ASCII Ribbon Campaign | Against HTML Mail and News
More information about the freebsd-pf
mailing list