Add missing rtcache_free

It's the same as other similar code paths in in_gif and ip6_etherip.
This commit is contained in:
ozaki-r 2015-04-24 07:51:43 +00:00
parent da07f8e1bd
commit 7600c4ec42
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: in6_gif.c,v 1.60 2014/05/18 14:46:16 rmind Exp $ */
/* $NetBSD: in6_gif.c,v 1.61 2015/04/24 07:51:43 ozaki-r Exp $ */
/* $KAME: in6_gif.c,v 1.62 2001/07/29 04:27:25 itojun Exp $ */
/*
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: in6_gif.c,v 1.60 2014/05/18 14:46:16 rmind Exp $");
__KERNEL_RCSID(0, "$NetBSD: in6_gif.c,v 1.61 2015/04/24 07:51:43 ozaki-r Exp $");
#include "opt_inet.h"
@ -184,6 +184,7 @@ in6_gif_output(struct ifnet *ifp, int family, struct mbuf *m)
/* If the route constitutes infinite encapsulation, punt. */
if (rt->rt_ifp == ifp) {
rtcache_free(&sc->gif_ro);
m_freem(m);
return ENETUNREACH; /* XXX */
}