talons

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

commit fa5ad28e7bdb9bb254254480dad839fe73313d99
parent dd81ff3c8150617dd58a6fd3207c1be86c9077c5
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 @@ -1474,7 +1474,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); @@ -1483,6 +1483,8 @@ static gboolean prefs_filtering_check_mod(gboolean check_changed_list) _("The list of filtering rules have been modified. Close anyway?"), GTK_STOCK_CLOSE, _("_Continue editing"), NULL, ALERTFOCUS_SECOND) != G_ALERTDEFAULT) { + if (prop != NULL) + filteringprop_free(prop); return TRUE; } }