-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
filterx/expr-compound: fix leaking list of statements
Signed-off-by: Attila Szakacs <[email protected]>
- Loading branch information
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/* | ||
* Copyright (c) 2024 Attila Szakacs | ||
* Copyright (c) 2024 Axoflow | ||
* Copyright (c) 2024 Attila Szakacs <[email protected]> | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
|
@@ -146,13 +147,15 @@ filterx_compound_expr_add(FilterXExpr *s, FilterXExpr *expr) | |
g_ptr_array_add(self->exprs, expr); | ||
} | ||
|
||
/* Takes reference of expr_list */ | ||
void | ||
filterx_compound_expr_add_list(FilterXExpr *s, GList *expr_list) | ||
{ | ||
for (GList *elem = expr_list; elem; elem = elem->next) | ||
{ | ||
filterx_compound_expr_add(s, elem->data); | ||
} | ||
g_list_free(expr_list); | ||
} | ||
|
||
FilterXExpr * | ||
|