Fix a memory leak in matcherrc rule parsing.
[claws.git] / 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;
                *prefs_filtering = g_slist_append(*prefs_filtering,
                                                  filtering);
                filtering = NULL;
+       } else {
+               filteringprop_free(filtering);
+               filtering = NULL;
        }
 }
 ;
        }
 }
 ;