changeset 39:a9101672c0e9

shutdown removes iptables entries that we added
author carl
date Thu, 08 Nov 2007 11:46:54 -0800
parents 26c29da3fbdf
children cdd6dde8d4ec
files src/syslog2iptables.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/syslog2iptables.cpp	Thu Nov 08 11:35:43 2007 -0800
+++ b/src/syslog2iptables.cpp	Thu Nov 08 11:46:54 2007 -0800
@@ -293,6 +293,7 @@
 
     worker();
     clear_strings();    // for valgrind checking
+    if (config) delete config;  // for valgrind checking
 
     return EXIT_SUCCESS;
 }