aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua/init_wslua.c
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2019-01-27 18:38:46 +0100
committerPeter Wu <peter@lekensteyn.nl>2019-01-28 11:09:35 +0000
commiteec3ce3bb211be10f1804423818f2689b0fa517e (patch)
tree2f5844f6d78b4cc5a55b7a995b5b4726abba85d7 /epan/wslua/init_wslua.c
parente8e60df4ce1aeed350c962c329c1eef4c09ce669 (diff)
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>
Diffstat (limited to 'epan/wslua/init_wslua.c')
0 files changed, 0 insertions, 0 deletions