Date: Sun, 20 Aug 2017 19:21:06 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r322725 - stable/10/sys/mips/atheros Message-ID: <201708201921.v7KJL6XI072148@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Sun Aug 20 19:21:06 2017 New Revision: 322725 URL: https://svnweb.freebsd.org/changeset/base/322725 Log: MFC r322527: 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 Approved by: re (kib) Modified: stable/10/sys/mips/atheros/if_arge.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/mips/atheros/if_arge.c ============================================================================== --- stable/10/sys/mips/atheros/if_arge.c Sun Aug 20 16:52:27 2017 (r322724) +++ stable/10/sys/mips/atheros/if_arge.c Sun Aug 20 19:21:06 2017 (r322725) @@ -1111,6 +1111,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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708201921.v7KJL6XI072148>