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; }