Merge branch 'collectd-5.4' into collectd-5.5
[collectd.git] / src / curl.c
index b750f80..ac4cc51 100644 (file)
@@ -327,7 +327,10 @@ static int cc_config_add_match (web_page_t *page, /* {{{ */
   } /* while (status == 0) */
 
   if (status != 0)
+  {
+    cc_web_match_free (match);
     return (status);
+  }
 
   match->match = match_create_simple (match->regex, match->exclude_regex,
       match->dstype);