Plug memory leak in arge_encap().
Reported by: Ilja Van Sprundel <ivansprundel ioactive.com> Submitted by: Domagoj Stolfa <domagoj.stolfa gmail.com> Reviewed by: adrian MFC after: 3 days
This commit is contained in:
parent
f3fed04372
commit
e6f9d1ce45
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=322527
@ -1516,6 +1516,7 @@ arge_encap(struct arge_softc *sc, struct mbuf **m_head)
|
||||
sc->stats.tx_pkts_unaligned++;
|
||||
m = m_defrag(*m_head, M_NOWAIT);
|
||||
if (m == NULL) {
|
||||
m_freem(*m_head);
|
||||
*m_head = NULL;
|
||||
return (ENOBUFS);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user