From 20d3008c38c5d25be043ea364378ad0ed10680fb Mon Sep 17 00:00:00 2001 From: Robert James Kaes Date: Wed, 26 Feb 2003 22:37:38 +0000 Subject: (main): Removed duplicate code calling the filter_destroy() function. Once is enough. [Detected by John M Wright] --- src/tinyproxy.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/tinyproxy.c b/src/tinyproxy.c index c4084a5..6239452 100644 --- a/src/tinyproxy.c +++ b/src/tinyproxy.c @@ -1,4 +1,4 @@ -/* $Id: tinyproxy.c,v 1.43 2003-01-27 18:44:43 rjkaes Exp $ +/* $Id: tinyproxy.c,v 1.44 2003-02-26 22:37:38 rjkaes Exp $ * * The initialize routine. Basically sets up all the initial stuff (logfile, * listening socket, config options, etc.) and then sits there and loops @@ -380,11 +380,6 @@ main(int argc, char **argv) child_main_loop(); -#ifdef FILTER_ENABLE - if (config.filter) - filter_destroy(); -#endif - log_message(LOG_INFO, "Shutting down."); child_kill_children(); @@ -398,6 +393,7 @@ main(int argc, char **argv) "Could not remove PID file \"%s\": %s.", config.pidpath, strerror(errno)); } + #ifdef FILTER_ENABLE if (config.filter) filter_destroy(); -- cgit v1.2.3