Re: [dpdk-dev] Fwd: Memory Leak: PCAP TX to File

2017-10-26 Thread Ferruh Yigit
On 10/26/2017 10:44 AM, Stefan Baranoff wrote: > All, > > I think I've found a (very minor) memory leak in writing to a PCAP file. In > drivers/net/pcap/rte_eth_pcap.c in open_single_tx_pcap around line 405 a > pcap_t is allocated by pcap_open_dead but is never freed. You are right. > I see two

Re: [dpdk-dev] Fwd: Memory Leak: PCAP TX to File

2017-10-26 Thread Thomas Monjalon
Cc Ferruh, maintainer of this driver. 26/10/2017 19:44, Stefan Baranoff: > All, > > I think I've found a (very minor) memory leak in writing to a PCAP file. In > drivers/net/pcap/rte_eth_pcap.c in open_single_tx_pcap around line 405 a > pcap_t is allocated by pcap_open_dead but is never freed. >

[dpdk-dev] Fwd: Memory Leak: PCAP TX to File

2017-10-26 Thread Stefan Baranoff
All, I think I've found a (very minor) memory leak in writing to a PCAP file. In drivers/net/pcap/rte_eth_pcap.c in open_single_tx_pcap around line 405 a pcap_t is allocated by pcap_open_dead but is never freed. I see two obvious fixes: 1) Free the pcap_t immediately after either on pcap_dump_o