wireshark/test/suite_dfilter
Peter Wu eec3ce3bb2 dfilter: fix memory leaks on dfilter compile errors involving a set
If a display filter contains a set for the set membership operator and
an error occurs, then gen_relation_in() (called via dfw_gencode() will
not take ownership of the set and a memory leak occurs.

Fix this by implementing a free callback for STTYPE_SET nodes which
frees unclaimed data. Add tests to verify the effectiveness, ASAN no
longer complains after this fix.

Bug: 15442
Change-Id: If37cf047660464b2d0304748034d0bc22111e5d6
Reviewed-on: https://code.wireshark.org/review/31758
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-28 11:09:35 +00:00
..
__init__.py
dfiltertest.py test/dfilter: be explicit with the expected error message 2019-01-24 18:24:00 +00:00
group_bytes_ether.py test: convert suite_dfilter to use fixtures 2018-11-15 22:57:40 +00:00
group_bytes_ipv6.py test: convert suite_dfilter to use fixtures 2018-11-15 22:57:40 +00:00
group_bytes_type.py test: convert suite_dfilter to use fixtures 2018-11-15 22:57:40 +00:00
group_dfunction_string.py test/dfilter: be explicit with the expected error message 2019-01-24 18:24:00 +00:00
group_double.py test: convert suite_dfilter to use fixtures 2018-11-15 22:57:40 +00:00
group_integer.py test/dfilter: be explicit with the expected error message 2019-01-24 18:24:00 +00:00
group_integer_1byte.py test: convert suite_dfilter to use fixtures 2018-11-15 22:57:40 +00:00
group_ipv4.py test: convert suite_dfilter to use fixtures 2018-11-15 22:57:40 +00:00
group_membership.py dfilter: fix memory leaks on dfilter compile errors involving a set 2019-01-28 11:09:35 +00:00
group_range_method.py test: convert suite_dfilter to use fixtures 2018-11-15 22:57:40 +00:00
group_scanner.py test: convert suite_dfilter to use fixtures 2018-11-15 22:57:40 +00:00
group_string_type.py test/dfilter: be explicit with the expected error message 2019-01-24 18:24:00 +00:00
group_stringz.py test: convert suite_dfilter to use fixtures 2018-11-15 22:57:40 +00:00
group_time_relative.py test: convert suite_dfilter to use fixtures 2018-11-15 22:57:40 +00:00
group_time_type.py test/dfilter: be explicit with the expected error message 2019-01-24 18:24:00 +00:00
group_tvb.py test: convert suite_dfilter to use fixtures 2018-11-15 22:57:40 +00:00
group_uint64.py test: convert suite_dfilter to use fixtures 2018-11-15 22:57:40 +00:00