Re: [dpdk-dev] [PATCH] net/pcap: fix memory leak from missing pcap_close

2017-11-07 Thread Ferruh Yigit
On 11/6/2017 11:52 AM, Ferruh Yigit wrote: > On 11/5/2017 9:24 AM, Stefan Baranoff wrote: >> In open_single_tx_pcap there is a call to pcap_open_dead which calls >> malloc to create and return a pcap_t. That object is never freed in >> this case. Other places it is freed by passing it back similar

Re: [dpdk-dev] [PATCH] net/pcap: fix memory leak from missing pcap_close

2017-11-06 Thread Ferruh Yigit
On 11/5/2017 9:24 AM, Stefan Baranoff wrote: > In open_single_tx_pcap there is a call to pcap_open_dead which calls > malloc to create and return a pcap_t. That object is never freed in > this case. Other places it is freed by passing it back similar to the > way the pcap_dumper_t is in this case.