From 806650a364da6d56822814b83ebe8fb214bb1775 Mon Sep 17 00:00:00 2001 From: pjd Date: Thu, 19 Feb 2004 14:13:21 +0000 Subject: Fixed ucred structure leak. Approved by: scottl (mentor) PR: 54163 MFC after: 3 days --- sys/netinet/tcp_timewait.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/netinet/tcp_timewait.c') diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c index faaf00a..0878744 100644 --- a/sys/netinet/tcp_timewait.c +++ b/sys/netinet/tcp_timewait.c @@ -1656,6 +1656,8 @@ tcp_twclose(struct tcptw *tw, int reuse) #endif in_pcbdetach(inp); tcpstat.tcps_closed++; + crfree(tw->tw_cred); + tw->tw_cred = NULL; if (reuse) return (tw); uma_zfree(tcptw_zone, tw); -- cgit v1.1