Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet Add missing rtfree



details:   https://anonhg.NetBSD.org/src/rev/c399ee8ac32c
branches:  trunk
changeset: 341660:c399ee8ac32c
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Mon Nov 16 05:39:39 2015 +0000

description:
Add missing rtfree

diffstat:

 sys/netinet/in.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 00d6ad9fbdb4 -r c399ee8ac32c sys/netinet/in.c
--- a/sys/netinet/in.c  Mon Nov 16 03:38:18 2015 +0000
+++ b/sys/netinet/in.c  Mon Nov 16 05:39:39 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in.c,v 1.161 2015/08/31 16:46:14 ozaki-r Exp $ */
+/*     $NetBSD: in.c,v 1.162 2015/11/16 05:39:39 ozaki-r Exp $ */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -91,7 +91,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in.c,v 1.161 2015/08/31 16:46:14 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in.c,v 1.162 2015/11/16 05:39:39 ozaki-r Exp $");
 
 #include "arp.h"
 #include "ether.h"
@@ -1699,6 +1699,7 @@
 
        error = 0;
 error:
+       rtfree(rt);
        return error;
 }
 



Home | Main Index | Thread Index | Old Index