DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] pcap: memory leak in eth_pcap_rx_jumbo
@ 2016-09-18 11:14 Dror Birkman
  2016-09-19  8:50 ` Ferruh Yigit
  0 siblings, 1 reply; 2+ messages in thread
From: Dror Birkman @ 2016-09-18 11:14 UTC (permalink / raw)
  To: dev

Hi,

It seems there is a memory leak in eth_pcap_rx_jumbo() in
case rte_pktmbuf_alloc() fails on any segment that is not the initial
segment.

If someone can confirm it, I'll patch it.

TIA,
Dror

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] pcap: memory leak in eth_pcap_rx_jumbo
  2016-09-18 11:14 [dpdk-dev] pcap: memory leak in eth_pcap_rx_jumbo Dror Birkman
@ 2016-09-19  8:50 ` Ferruh Yigit
  0 siblings, 0 replies; 2+ messages in thread
From: Ferruh Yigit @ 2016-09-19  8:50 UTC (permalink / raw)
  To: Dror Birkman, dev

Hi Dror,

On 9/18/2016 12:14 PM, Dror Birkman wrote:
> Hi,
> 
> It seems there is a memory leak in eth_pcap_rx_jumbo() in
> case rte_pktmbuf_alloc() fails on any segment that is not the initial
> segment.
> 
> If someone can confirm it, I'll patch it.
> 

I think you are right. If rte_pktmbuf_alloc() fails, previously
allocated mbufs, including first one in the segment, not freed.

Thanks,
ferruh

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-09-19  8:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-18 11:14 [dpdk-dev] pcap: memory leak in eth_pcap_rx_jumbo Dror Birkman
2016-09-19  8:50 ` Ferruh Yigit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).