summaryrefslogtreecommitdiff
path: root/mail/dspam-devel/files
diff options
context:
space:
mode:
authorAndrej Zverev <az@FreeBSD.org>2005-12-15 06:42:16 +0000
committerAndrej Zverev <az@FreeBSD.org>2005-12-15 06:42:16 +0000
commit14b23de2718dbc6556c8490c4c5604ed36c21ceb (patch)
tree334e320486923ad77a8f116a8b50df41f8304aa4 /mail/dspam-devel/files
parentAdd missing dependency on PHP session module. (diff)
- 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 <itetcu@people.tecnik93.com> (maintainer)
Diffstat (limited to 'mail/dspam-devel/files')
-rw-r--r--mail/dspam-devel/files/UPDATING10
-rw-r--r--mail/dspam-devel/files/dspam-devel.sh.in2
-rw-r--r--mail/dspam-devel/files/patch-src_libdspam.c25
3 files changed, 33 insertions, 4 deletions
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.
@@ -14,6 +11,13 @@ 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)