wireshark/ui/cli
Martin Kaiser 8e030dfbea tap-simple_stattable: fix a memory leak for tshark -z
Displaying statistics with tshark results in a memory leak.

tshark -r <any pcap file> -z dhcp,stat -q

==26971==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7f89a4bae518 in calloc (/usr/lib/x86_64-linux-gnu/libasan.so.5+0xe9518)
    #1 0x7f8989af2918 in g_malloc0 (/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x53918)

init_stat_table allocates a table_stat_t. This is used as private data while
the tap listener is running but it's not freed afterwards.

This patch adds a finish callback for the tap listener where the
table_stat_t is freed.
2021-01-15 06:03:45 +00:00
..
.editorconfig HTTPS In More Places, update some URLs. 2019-07-27 07:55:36 +00:00
tap-camelsrt.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
tap-credentials.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
tap-diameter-avp.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
tap-endpoints.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
tap-expert.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
tap-exportobject.c QT/CLI: Remove limit for object export files 2019-11-05 22:40:27 +00:00
tap-exportobject.h Reorganize long option values 2019-12-15 20:02:09 +00:00
tap-flow.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
tap-follow.c QUIC: Add Follow QUIC Stream support to Qt and tshark 2019-10-04 04:36:09 +00:00
tap-funnel.c Replace g_malloc calls with g_new 2020-12-22 15:48:48 +00:00
tap-gsm_astat.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
tap-hosts.c tshark: Add "ip" as alias for "ipv4" in -z hosts option. 2019-09-02 06:54:08 +00:00
tap-httpstat.c HTTP: share dissector status value_string array with tshark HTTP stats 2020-01-24 22:38:17 +00:00
tap-icmpstat.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
tap-icmpv6stat.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
tap-iostat.c Detect and replace bad allocation patterns 2020-12-22 14:56:38 +00:00
tap-iousers.c Use human-readable numbers for conversation stats 2019-12-03 03:17:52 +00:00
tap-macltestat.c MAC LTE: add support for extended LCID 2020-06-12 04:13:25 +00:00
tap-protocolinfo.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
tap-protohierstat.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
tap-rlcltestat.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
tap-rpcprogs.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
tap-rtd.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
tap-rtp.c Voice dialogs: Added option to apply display filter in VoIP/RTP dialogs 2021-01-01 19:06:58 +00:00
tap-rtspstat.c Detect and replace bad allocation patterns (more) 2020-12-23 14:07:18 +00:00
tap-sctpchunkstat.c Detect and replace bad allocation patterns 2020-12-22 14:56:38 +00:00
tap-simple_stattable.c tap-simple_stattable: fix a memory leak for tshark -z 2021-01-15 06:03:45 +00:00
tap-sipstat.c SIP: share dissector status value_string array with tshark SIP stats 2020-01-24 16:10:43 +00:00
tap-smbsids.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
tap-srt.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
tap-stats_tree.c Fix compilation with gcc-9. 2020-01-21 04:44:31 +00:00
tap-sv.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
tap-wspstat.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
tshark-tap.h Fix comment end after SPDX identifier 2018-05-01 06:56:37 +00:00