8e030dfbea
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. |
||
---|---|---|
.. | ||
.editorconfig | ||
tap-camelsrt.c | ||
tap-credentials.c | ||
tap-diameter-avp.c | ||
tap-endpoints.c | ||
tap-expert.c | ||
tap-exportobject.c | ||
tap-exportobject.h | ||
tap-flow.c | ||
tap-follow.c | ||
tap-funnel.c | ||
tap-gsm_astat.c | ||
tap-hosts.c | ||
tap-httpstat.c | ||
tap-icmpstat.c | ||
tap-icmpv6stat.c | ||
tap-iostat.c | ||
tap-iousers.c | ||
tap-macltestat.c | ||
tap-protocolinfo.c | ||
tap-protohierstat.c | ||
tap-rlcltestat.c | ||
tap-rpcprogs.c | ||
tap-rtd.c | ||
tap-rtp.c | ||
tap-rtspstat.c | ||
tap-sctpchunkstat.c | ||
tap-simple_stattable.c | ||
tap-sipstat.c | ||
tap-smbsids.c | ||
tap-srt.c | ||
tap-stats_tree.c | ||
tap-sv.c | ||
tap-wspstat.c | ||
tshark-tap.h |