X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fiptables.c;h=806b7a457f76308c3226aa3255444e97eeda20d5;hb=246ed363bda10ab0fd00059b0820f441e1b09268;hp=49454f050d755283b5cec6094a003116983e21fb;hpb=5fb8bff2b2d2d5c61621c6686b343d7e0eea48f0;p=collectd.git diff --git a/src/iptables.c b/src/iptables.c index 49454f05..806b7a45 100644 --- a/src/iptables.c +++ b/src/iptables.c @@ -29,8 +29,6 @@ #include "plugin.h" #include "configfile.h" -#include - #include #include @@ -213,6 +211,7 @@ static int iptables_config (const char *key, const char *value) char errbuf[1024]; ERROR ("realloc failed: %s", sstrerror (errno, errbuf, sizeof (errbuf))); + sfree (temp.rule.comment); return (1); } @@ -223,6 +222,7 @@ static int iptables_config (const char *key, const char *value) char errbuf[1024]; ERROR ("malloc failed: %s", sstrerror (errno, errbuf, sizeof (errbuf))); + sfree (temp.rule.comment); return (1); } memcpy (final, &temp, sizeof (temp));