X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=blobdiff_plain;f=lib%2Flibrte_pdump%2Frte_pdump.c;h=fec49b525f7421f5b5c77b69bb98736d3c714d7f;hp=e6182d35c5aa57411322786adfa6e06c8c1a3319;hb=ef1d0e390e056916438ad74c4fa0333c3f09aaa6;hpb=4c20622a95087b42ddb403406d3877a9dc3d731b diff --git a/lib/librte_pdump/rte_pdump.c b/lib/librte_pdump/rte_pdump.c index e6182d35c5..fec49b525f 100644 --- a/lib/librte_pdump/rte_pdump.c +++ b/lib/librte_pdump/rte_pdump.c @@ -153,6 +153,8 @@ pdump_pktmbuf_copy(struct rte_mbuf *m, struct rte_mempool *mp) do { nseg++; if (pdump_pktmbuf_copy_data(seg, m) < 0) { + if (seg != m_dup) + rte_pktmbuf_free_seg(seg); rte_pktmbuf_free(m_dup); return NULL; }