summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/netinet/tcp_subr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index afd25c9f1a168..e700bbb307c8e 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -1653,6 +1653,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);