net/pcap: fix memory leak in jumbo frames
authorDror Birkman <dror.birkman@lightcyber.com>
Tue, 20 Sep 2016 12:08:56 +0000 (15:08 +0300)
committerBruce Richardson <bruce.richardson@intel.com>
Fri, 30 Sep 2016 10:27:18 +0000 (12:27 +0200)
commit19f8167c68ce9feff02db23365fdf42bd1a29741
tree6e4efff5435324214e71e2b34ba4182dbc9cffba
parent6579c27c11a5fb07b03cea837d51ed64ba73a763
net/pcap: fix memory leak in jumbo frames

If rte_pktmbuf_alloc() fails on any segment that is not the initial
segment, previously allocated mbufs are not freed.

Fixes: 6db141c91e1f ("pcap: support jumbo frames")

Signed-off-by: Dror Birkman <dror.birkman@lightcyber.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/pcap/rte_eth_pcap.c