[Xfce4-commits] <midori:master> Free uri in adblock_is_matched_by_key after printing

Christian Dywan noreply at xfce.org
Sun Feb 13 18:36:01 CET 2011


Updating branch refs/heads/master
         to 5cdbf5e8141d131273609e4ec3f0776d29bcf1f1 (commit)
       from b8c322fd50882b1ce813d8eb29d7421c82d6d9d8 (commit)

commit 5cdbf5e8141d131273609e4ec3f0776d29bcf1f1
Author: Paweł Forysiuk <tuxator at o2.pl>
Date:   Sun Feb 13 17:52:37 2011 +0100

    Free uri in adblock_is_matched_by_key after printing

 extensions/adblock.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/extensions/adblock.c b/extensions/adblock.c
index ff08b67..00055b2 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;
                 }



More information about the Xfce4-commits mailing list