Free uri in adblock_is_matched_by_key after printing
This commit is contained in:
parent
b8c322fd50
commit
5cdbf5e814
1 changed files with 2 additions and 1 deletions
|
@ -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))
|
if (g_regex_match_full (regex, req_uri, -1, 0, 0, NULL, NULL))
|
||||||
{
|
{
|
||||||
g_free (uri);
|
|
||||||
g_free (sig);
|
g_free (sig);
|
||||||
if (opts && adblock_check_filter_options (regex, opts, req_uri, page_uri))
|
if (opts && adblock_check_filter_options (regex, opts, req_uri, page_uri))
|
||||||
{
|
{
|
||||||
|
g_free (uri);
|
||||||
g_list_free (regex_bl);
|
g_list_free (regex_bl);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
adblock_debug ("blocked by regexp=%s -- %s", g_regex_get_pattern (regex), uri);
|
adblock_debug ("blocked by regexp=%s -- %s", g_regex_get_pattern (regex), uri);
|
||||||
|
g_free (uri);
|
||||||
g_list_free (regex_bl);
|
g_list_free (regex_bl);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue