From 5cdbf5e8141d131273609e4ec3f0776d29bcf1f1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Forysiuk?= Date: Sun, 13 Feb 2011 17:52:37 +0100 Subject: [PATCH] Free uri in adblock_is_matched_by_key after printing --- extensions/adblock.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/adblock.c b/extensions/adblock.c index ff08b672..00055b2c 100644 --- a/extensions/adblock.c +++ b/extensions/adblock.c @@ -654,16 +654,17 @@ adblock_is_matched_by_key (const gchar* opts, { if (g_regex_match_full (regex, req_uri, -1, 0, 0, NULL, NULL)) { - g_free (uri); g_free (sig); if (opts && adblock_check_filter_options (regex, opts, req_uri, page_uri)) { + g_free (uri); g_list_free (regex_bl); return FALSE; } else { adblock_debug ("blocked by regexp=%s -- %s", g_regex_get_pattern (regex), uri); + g_free (uri); g_list_free (regex_bl); return TRUE; } -- 2.39.5