[cvs] bogofilter main.c,1.109,1.109.2.1
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <m-...@us...> - 2003-01-14 04:10:29
|
Update of /cvsroot/bogofilter/bogofilter In directory sc8-pr-cvs1:/tmp/cvs-serv7498 Modified Files: Tag: bf-092-database-1 main.c Log Message: Pass the db mode (read or write) to open_wordlists. Free wordlists after use. Index: main.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/main.c,v retrieving revision 1.109 retrieving revision 1.109.2.1 diff -u -d -r1.109 -r1.109.2.1 --- main.c 13 Jan 2003 15:11:35 -0000 1.109 +++ main.c 14 Jan 2003 04:10:25 -0000 1.109.2.1 @@ -78,7 +78,7 @@ } /* open all wordlists */ - open_wordlists(); + open_wordlists(run_type == RUN_NORMAL ? DB_READ : DB_WRITE); if (*outfname && passthrough) { if ((out = fopen(outfname,"wt"))==NULL) @@ -175,6 +175,7 @@ textblock_free(textblocks); close_wordlists(); + free_wordlists(); #ifdef HAVE_SYSLOG_H if (logflag) |