From 77ba6b7fcd1704ded65f061dbd301945f5ca4ad6 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 19 Jun 2015 10:54:02 +0200 Subject: [PATCH] curl plugin: Fix memory leak. --- src/curl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/curl.c b/src/curl.c index ac55953c..9d2196ac 100644 --- a/src/curl.c +++ b/src/curl.c @@ -325,7 +325,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); -- 2.11.0