Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/netinet/udp_usrreq.c,v retrieving revision 1.154 retrieving revision 1.155 diff -u -p -r1.154 -r1.155 --- src/sys/netinet/udp_usrreq.c 2006/11/10 13:01:55 1.154 +++ src/sys/netinet/udp_usrreq.c 2006/11/10 13:02:32 1.155 @@ -1,4 +1,4 @@ -/* $NetBSD: udp_usrreq.c,v 1.154 2006/11/10 13:01:55 yamt Exp $ */ +/* $NetBSD: udp_usrreq.c,v 1.155 2006/11/10 13:02:32 yamt Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -61,7 +61,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.154 2006/11/10 13:01:55 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.155 2006/11/10 13:02:32 yamt Exp $"); #include "opt_inet.h" #include "opt_ipsec.h" @@ -1072,6 +1072,9 @@ udp_ctloutput(int op, struct socket *so, error = ENOPROTOOPT; break; } + if (m != NULL) { + m_free(m); + } break; default: