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
796e094ce6
commit
a165ab4585
@ -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