From 14b23de2718dbc6556c8490c4c5604ed36c21ceb Mon Sep 17 00:00:00 2001 From: Andrej Zverev Date: Thu, 15 Dec 2005 06:42:16 +0000 Subject: - Fix memory leak in BNR (resurrect files/patch-src_libdspam.c from Attic but with totally different content imported from vendor CVS). - Bump PORTREVISION. PR: ports/90361 Submitted by: Ion-Mihai "IOnut" Tetcu (maintainer) --- mail/dspam-devel/files/UPDATING | 10 +++++++--- mail/dspam-devel/files/dspam-devel.sh.in | 2 +- mail/dspam-devel/files/patch-src_libdspam.c | 25 +++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 mail/dspam-devel/files/patch-src_libdspam.c (limited to 'mail/dspam-devel/files') diff --git a/mail/dspam-devel/files/UPDATING b/mail/dspam-devel/files/UPDATING index 44d7221ec419..d8be4719455d 100644 --- a/mail/dspam-devel/files/UPDATING +++ b/mail/dspam-devel/files/UPDATING @@ -1,6 +1,3 @@ -$FreeBSD$ -$Tecnik: ports/mail/dspam-devel/files/UPDATING,v 1.6 2005/12/12 01:53:20 itetcu Exp $ - This file documents some of the problems you may encounter when upgrading dspam port. I will try my best to minimize these disruptions, but sometimes they are unavoidable. @@ -13,6 +10,13 @@ also the UPGRADING enclosed in the dspam distribution. You can see it by doing in the port directory: make extract; more `find . -type f -maxdepth 2 -name UPGRADING` +########################################################################### +# dspam-devel-3.6.2_1 (2005-12-11 19:18) +# + +Fix memory leak in BNR. + + ########################################################################### # dspam-devel-3.6.2 (2005-12-11 21:34) # diff --git a/mail/dspam-devel/files/dspam-devel.sh.in b/mail/dspam-devel/files/dspam-devel.sh.in index a94e95abffac..390a040b0fd9 100644 --- a/mail/dspam-devel/files/dspam-devel.sh.in +++ b/mail/dspam-devel/files/dspam-devel.sh.in @@ -1,7 +1,7 @@ #!/bin/sh # $FreeBSD$ # formerly $ FreeBSD: ports/mail/dspam-devel/files/dspam.rc,v 1.2 2005/02/25 03:09:26 leeym Exp $ -# $Tecnik: ports/mail/dspam-devel/files/dspam-devel.sh.in,v 1.2 2005/12/11 21:57:45 itetcu Exp $ +# $Tecnik: ports/mail/dspam-devel/files/dspam-devel.sh.in,v 1.3 2005/12/13 21:09:37 itetcu Exp $ # PROVIDE: dspam # REQUIRE: DAEMON %%MYSQL%% %%PGSQL%% %%CLAMD%% diff --git a/mail/dspam-devel/files/patch-src_libdspam.c b/mail/dspam-devel/files/patch-src_libdspam.c new file mode 100644 index 000000000000..2e9c78dbb6bd --- /dev/null +++ b/mail/dspam-devel/files/patch-src_libdspam.c @@ -0,0 +1,25 @@ +Index: dspam/src/libdspam.c +=================================================================== +RCS file: /usr/local/cvsroot/dspam/src/libdspam.c,v +retrieving revision 1.144 +retrieving revision 1.145 +diff -u -r1.144 -r1.145 +--- src/libdspam.c 24 Nov 2005 14:09:12 -0000 1.144 ++++ src/libdspam.c 13 Dec 2005 16:59:45 -0000 1.145 +@@ -1,4 +1,4 @@ +-/* $Id: libdspam.c,v 1.144 2005/11/24 14:09:12 jonz Exp $ */ ++/* $Id: libdspam.c,v 1.145 2005/12/13 16:59:45 jonz Exp $ */ + + /* + DSPAM +@@ -892,7 +892,9 @@ + /* Apply Bayesian Noise Reduction */ + if (CTX->flags & DSF_NOISE) + { +- _ds_apply_bnr(CTX, diction); ++ ds_diction_t p = _ds_apply_bnr(CTX, diction); ++ if (p) ++ ds_diction_destroy(p); + } + + if (CTX->flags & DSF_WHITELIST) -- cgit v1.2.3