Free uri in adblock_is_matched_by_key after printing

This commit is contained in:
Paweł Forysiuk 2011-02-13 17:52:37 +01:00 committed by Christian Dywan
parent b8c322fd50
commit 5cdbf5e814

View file

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