diff options
author | Phil Sutter <phil@nwl.cc> | 2024-04-24 23:35:00 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2024-04-24 23:52:06 +0200 |
commit | a0a15e4dd0576bc4efd9b01fdd4ee1c565effac9 (patch) | |
tree | f062c5c9b0bc4c0444541fb8ae55905769e03df3 /tests/build/README | |
parent | 4955ae1a81b73f9a61b7fbf1a73e11544513548e (diff) |
json: Fix for memleak in __binop_expr_json
When merging the JSON arrays generated for LHS and RHS of nested binop
expressions, the emptied array objects leak if their reference is not
decremented.
Fix this and tidy up other spots which did it right already by
introducing a json_array_extend wrapper.
Reported-by: Pablo Neira Ayuso <pablo@netfilter.org>
Fixes: 0ac39384fd9e4 ("json: Accept more than two operands in binary expressions")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'tests/build/README')
0 files changed, 0 insertions, 0 deletions