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
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.
>
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
3 matches
Mail list logo