talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit ec8d3625b668c4288310196108bcc37a40f2c889
parent 5168c2ab52b68a7265cb85c46480cfa8a18a23e3
Author: wwp <subscript@free.fr>
Date:   Sun, 26 Sep 2021 21:11:34 +0200

Fix CID 1491095: resource leak.

Diffstat:
Msrc/prefs_filtering.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/prefs_filtering.c b/src/prefs_filtering.c @@ -1455,7 +1455,7 @@ static gboolean prefs_filtering_check_mod(gboolean check_changed_list) gchar * str; gchar * filtering_str; gint row = 1; - AlertValue val; + AlertValue val; prop = prefs_filtering_dialog_to_filtering(FALSE); @@ -1464,6 +1464,8 @@ static gboolean prefs_filtering_check_mod(gboolean check_changed_list) _("The list of filtering rules have been modified. Close anyway?"), _("_Close"), _("_Continue editing"), NULL, ALERTFOCUS_SECOND) != G_ALERTDEFAULT) { + if (prop != NULL) + filteringprop_free(prop); return TRUE; } }