Subject: memory leak in tcp_input.c
To: None <port-alpha@NetBSD.ORG>
From: Chris G Demetriou <Chris_G_Demetriou@BALVENIE.PDL.CS.CMU.EDU>
List: port-alpha
Date: 08/13/1995 18:38:18
[ for those of you who read this list, but don't actually use the
alpha port: note that this is only present in the networking code
used on the Alpha... ]
memory leak in tcp_input.c: i forgot to free something before a
return. fix is below.
I found this while hunting down an annoying TCP(?) bug that i can
reproduce reasonably regularly. it's _not_ the cause of the bug,
but can hang a machine pretty well... 8-)
chris
===================================================================
RCS file: /usr/users/cgd/NetBSD/cvs/src/sys/netinet/tcp_input.c,v
retrieving revision 1.10
diff -c -r1.10 tcp_input.c
*** 1.10 1995/06/20 17:14:28
--- tcp_input.c 1995/08/13 10:21:24
***************
*** 158,163 ****
--- 158,164 ----
tcpstat.tcps_rcvduppack++;
tcpstat.tcps_rcvdupbyte += ti->ti_len;
m_freem(m);
+ FREE(tiqe, M_IPQ);
return (0);
}
m_adj(m, i);