From: Ilya V. Matveychikov Date: Fri, 10 Nov 2017 13:55:16 +0000 (+0300) Subject: pdump: fix possible mbuf leak on failure X-Git-Tag: spdx-start~847 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ef1d0e390e056916438ad74c4fa0333c3f09aaa6;hp=ef1d0e390e056916438ad74c4fa0333c3f09aaa6;p=dpdk.git pdump: fix possible mbuf leak on failure If pdump_pktmbuf_copy_data() fails it's possible to have segment leak as rte_pktmbuf_free() only handles m_dup chain but not the seg just allocated and yet not chained. Fixes: 278f945402c5 ("pdump: add new library for packet capture") Signed-off-by: Ilya V. Matveychikov ---