Wireshark-commits: [Wireshark-commits] master a04b6fc: diameter: fix 400kb leaked memory on exit
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=a04b6fcb3db901734ed948134c973996786be8b7
Submitter: Peter Wu (peter@xxxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
a04b6fc by Peter Wu (peter@xxxxxxxxxxxxx):
diameter: fix 400kb leaked memory on exit
Before:
SUMMARY: AddressSanitizer: 399684 byte(s) leaked in 17208 allocation(s).
After addressing to-do by calling ddict_free:
SUMMARY: AddressSanitizer: 3024 byte(s) leaked in 256 allocation(s).
After fixing all remaining leaks cases in the flex file for diameter:
SUMMARY: AddressSanitizer: 735 byte(s) leaked in 58 allocation(s).
Not bad huh :-)
Ping-Bug: 12790
Change-Id: I0c730ad77ae15c69390bc6cf0a3a985395a64771
Reviewed-on: https://code.wireshark.org/review/17364
Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
Reviewed-by: Michael Mann <mmann78@xxxxxxxxxxxx>
Reviewed-by: Jeff Morriss <jeff.morriss.ws@xxxxxxxxx>
Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
Actions performed:
from 1431283 pcapng: do not leak blocks
adds a04b6fc diameter: fix 400kb leaked memory on exit
Summary of changes:
epan/diam_dict.l | 35 ++++++++++++++++++++++++++++-------
epan/dissectors/packet-diameter.c | 12 ++++++++++--
2 files changed, 38 insertions(+), 9 deletions(-)