Fix a memory leak in matcherrc rule parsing.
authorAndrej Kacian <ticho@claws-mail.org>
Tue, 11 Jul 2017 17:48:57 +0000 (19:48 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Tue, 11 Jul 2017 17:48:57 +0000 (19:48 +0200)
src/matcher_parser_parse.y

index dd2aee7..20dc91e 100644 (file)
@@ -537,6 +537,9 @@ filtering_action_list
                *prefs_filtering = g_slist_append(*prefs_filtering,
                                                  filtering);
                filtering = NULL;
+       } else {
+               filteringprop_free(filtering);
+               filtering = NULL;
        }
 }
 ;