summaryrefslogtreecommitdiffstats
path: root/tests/py
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2020-04-30 16:30:15 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2020-04-30 16:40:07 +0200
commite68938f2bf89fcc9a99e12c9b7a10c1838f2a133 (patch)
treec3dfd6baa1f4ad98abdf40366a18d16cc318c234 /tests/py
parentb6d50bfde21b5a24a606cbf22137e04e8e0f195d (diff)
rule: fix element cache update in __do_add_setelems()
The set->init and expr arguments might actually refer to the same list of elements. Skip set element cache update introduced by dd44081d91ce ("segtree: Fix add and delete of element in same batch") otherwise list_splice_tail_init() actually operates with the same list as arguments. Valgrind reports this problem as a memleak since the result of this operation was an empty set element list. Fixes: dd44081d91ce ("segtree: Fix add and delete of element in same batch") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py')
0 files changed, 0 insertions, 0 deletions