changeset 40:cdd6dde8d4ec stable-1-8

shutdown removes iptables entries that we added
author carl
date Thu, 08 Nov 2007 12:20:14 -0800
parents a9101672c0e9
children 738d1f059183
files src/syslog2iptables.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/syslog2iptables.cpp	Thu Nov 08 11:46:54 2007 -0800
+++ b/src/syslog2iptables.cpp	Thu Nov 08 12:20:14 2007 -0800
@@ -292,8 +292,8 @@
         my_syslog("failed to detach config loader thread");
 
     worker();
+    if (config) delete config;  // for valgrind checking
     clear_strings();            // for valgrind checking
-    if (config) delete config;  // for valgrind checking
 
     return EXIT_SUCCESS;
 }