Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-6-1]: src/sys/netinet6 Pull up following revision(s) (requested b...



details:   https://anonhg.NetBSD.org/src/rev/f6a4fcfea825
branches:  netbsd-6-1
changeset: 775983:f6a4fcfea825
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Aug 27 14:45:11 2014 +0000

description:
Pull up following revision(s) (requested by maxv in ticket #1114):
        sys/netinet6/ip6_output.c                       1.158 via patch

Fix a memory leak in calling setsockopt() on an INET6 socket.

diffstat:

 sys/netinet6/ip6_output.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r cd43ef45d18e -r f6a4fcfea825 sys/netinet6/ip6_output.c
--- a/sys/netinet6/ip6_output.c Sat Aug 16 00:58:45 2014 +0000
+++ b/sys/netinet6/ip6_output.c Wed Aug 27 14:45:11 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip6_output.c,v 1.145 2012/02/05 00:41:15 rmind Exp $   */
+/*     $NetBSD: ip6_output.c,v 1.145.8.1 2014/08/27 14:45:11 msaitoh Exp $     */
 /*     $KAME: ip6_output.c,v 1.172 2001/03/25 09:55:56 itojun Exp $    */
 
 /*
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip6_output.c,v 1.145 2012/02/05 00:41:15 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip6_output.c,v 1.145.8.1 2014/08/27 14:45:11 msaitoh Exp $");
 
 #include "opt_inet.h"
 #include "opt_inet6.h"
@@ -1781,6 +1781,8 @@
                        optp = &in6p->in6p_outputopts;
                        error = ip6_pcbopt(optname, optbuf, optbuflen,
                            optp, kauth_cred_get(), uproto);
+
+                       free(optbuf, M_IP6OPT);
                        break;
                        }
 #undef OPTSET



Home | Main Index | Thread Index | Old Index