net/pcap: fix using mbuf after freeing it
Fixes: 2269e7e815a2 ("pcap: add Rx and Tx byte counters") Cc: stable@dpdk.org Signed-off-by: Johan Samuelsson <johan.xb.samuelsson@ericsson.com> Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
This commit is contained in:
parent
e3efd85bf9
commit
8dc7358b28
@ -293,9 +293,9 @@ eth_pcap_tx_dumper(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rte_pktmbuf_free(mbuf);
|
|
||||||
num_tx++;
|
num_tx++;
|
||||||
tx_bytes += mbuf->pkt_len;
|
tx_bytes += mbuf->pkt_len;
|
||||||
|
rte_pktmbuf_free(mbuf);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user