Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 http://m00nbsd.net/ae123a9bae03f7dde5c6d654412d...



details:   https://anonhg.NetBSD.org/src/rev/69468a115440
branches:  trunk
changeset: 801761:69468a115440
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sat Aug 16 17:27:09 2014 +0000

description:
http://m00nbsd.net/ae123a9bae03f7dde5c6d654412daf5a.html#Report-2

#03-0x02: Memory leak

ok ozaki-r@

diffstat:

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

diffs (27 lines):

diff -r 62a925c5ed57 -r 69468a115440 sys/netinet6/ip6_output.c
--- a/sys/netinet6/ip6_output.c Sat Aug 16 17:24:28 2014 +0000
+++ b/sys/netinet6/ip6_output.c Sat Aug 16 17:27:09 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip6_output.c,v 1.157 2014/05/30 01:39:03 christos Exp $        */
+/*     $NetBSD: ip6_output.c,v 1.158 2014/08/16 17:27:09 maxv 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.157 2014/05/30 01:39:03 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip6_output.c,v 1.158 2014/08/16 17:27:09 maxv Exp $");
 
 #include "opt_inet.h"
 #include "opt_inet6.h"
@@ -1601,6 +1601,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