Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Dec 2013 10:53:17 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r259503 - head/sys/netinet6
Message-ID:  <201312171053.rBHArHM8022369@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Tue Dec 17 10:53:17 2013
New Revision: 259503
URL: http://svnweb.freebsd.org/changeset/base/259503

Log:
  Free mbuf in case of error.
  
  MFC after:	1 week

Modified:
  head/sys/netinet6/send.c

Modified: head/sys/netinet6/send.c
==============================================================================
--- head/sys/netinet6/send.c	Tue Dec 17 10:33:27 2013	(r259502)
+++ head/sys/netinet6/send.c	Tue Dec 17 10:53:17 2013	(r259503)
@@ -163,6 +163,7 @@ send_output(struct mbuf *m, struct ifnet
 			nd6_ra_input(m, sizeof(struct ip6_hdr), icmp6len);
 			break;
 		default:
+			m_freem(m);
 			return (ENOSYS);
 		}
 		return (0);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312171053.rBHArHM8022369>