commit d0f60a36f0c5af50e6a7d6a0be5bec1f9bf4956a
parent 29d534e1a5fbc41c3f28ddaa63f238ed8232efb0
Author: wwp <subscript@free.fr>
Date: Mon, 4 Oct 2021 18:18:09 +0200
Fix CID 1491217: resource leak (2/2).
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/filtering.c b/src/filtering.c
@@ -953,9 +953,11 @@ gchar *filteringaction_to_string(FilteringAction *action)
command_str = get_matchparser_tab_str(action->type);
- if (command_str == NULL)
+ if (command_str == NULL) {
+ g_string_free(dest, TRUE);
return NULL;
-
+ }
+
switch(action->type) {
case MATCHACTION_MOVE:
case MATCHACTION_COPY: