1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 13:33:52 +01:00

17097: closing all TCP sessions referenced freed memory.

This commit is contained in:
Peter Stephenson 2002-05-08 15:54:05 +00:00
parent 88164bc45a
commit 8c47be28f9
2 changed files with 7 additions and 2 deletions

@ -1,5 +1,8 @@
2002-05-08 Peter Stephenson <pws@csr.com>
* 17097: Src/Modules/tcp.c: closing all TCP sessions referenced
freed memory.
* Unposted: Src/Modules/zselect.c: remove an unused counter.
* 17095: Src/Modules/zselect.c: wrong index when appending to a

@ -279,10 +279,12 @@ zts_byfd(int fd)
static void
tcp_cleanup(void)
{
LinkNode node;
LinkNode node, next;
for (node = firstnode(ztcp_sessions); node; incnode(node))
for (node = firstnode(ztcp_sessions); node; node = next) {
next = node->next;
tcp_close((Tcp_session)getdata(node));
}
}
/**/