From 243d1b1bf17210bcacb8b4ab9ca6fa751178cc78 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net>
Date: Fri, 7 Nov 1997 13:17:46 -0800
Subject: [PATCH] fd leak fixed

Rev: src/modules/files/socket.c:1.18
---
 src/modules/files/socket.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/modules/files/socket.c b/src/modules/files/socket.c
index a193aac0e2..87a8a63e34 100644
--- a/src/modules/files/socket.c
+++ b/src/modules/files/socket.c
@@ -256,7 +256,8 @@ static void port_create(INT32 args)
       if(strcmp("stdin",sp[-args].u.string->str))
 	error("port->create() called with string other than 'stdin'\n");
 
-      THIS->fd=0;	/* FIXME: Shouldn't there be a close() here? */
+      do_close(THIS,fp->current_object);
+      THIS->fd=0;
 
       if(listen(THIS->fd, 16384) < 0)
       {
-- 
GitLab