Skip to content

Commit 96484fb

Browse files
authored
Fix: Resolve mbuf double-free in MBufRawPacket::setMBuf (#1967)
1 parent 6844091 commit 96484fb

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Pcap++/src/MBufRawPacket.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,6 @@ namespace pcpp
324324

325325
void MBufRawPacket::setMBuf(struct rte_mbuf* mBuf, timespec timestamp)
326326
{
327-
if (m_MBuf != nullptr && m_FreeMbuf)
328-
rte_pktmbuf_free(m_MBuf);
329-
330327
if (mBuf == nullptr)
331328
{
332329
PCPP_LOG_ERROR("mbuf to set is nullptr");

0 commit comments

Comments
 (0)