summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/maps/typeof_maps_add_delete
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2024-04-24 23:35:00 +0200
committerPhil Sutter <phil@nwl.cc>2024-04-24 23:52:06 +0200
commita0a15e4dd0576bc4efd9b01fdd4ee1c565effac9 (patch)
treef062c5c9b0bc4c0444541fb8ae55905769e03df3 /tests/shell/testcases/maps/typeof_maps_add_delete
parent4955ae1a81b73f9a61b7fbf1a73e11544513548e (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/shell/testcases/maps/typeof_maps_add_delete')
0 files changed, 0 insertions, 0 deletions