aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/udp_usrreq.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2004-08-12 01:34:27 +0000
committerRobert Watson <rwatson@FreeBSD.org>2004-08-12 01:34:27 +0000
commitc19c5239a668c6cef1c5ea25537fab4d7921f85f (patch)
tree09f51ecb7b8b99b39267ee18093d5f686e5a283f /sys/netinet/udp_usrreq.c
parent4f34d8d132b062dde896d068b0473c6359c24172 (diff)
Notes
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r--sys/netinet/udp_usrreq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index dc95f4bd2cb84..ef084a3ae807a 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -1072,6 +1072,8 @@ udp_send(struct socket *so, int flags, struct mbuf *m, struct sockaddr *addr,
if (inp == 0) {
INP_INFO_WUNLOCK(&udbinfo);
m_freem(m);
+ if (control != NULL)
+ m_freem(control);
return EINVAL;
}
INP_LOCK(inp);