[PATCH 5/6] ftpd: Avoid resource leak

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Oct 5 13:43:46 UTC 2018


Update #3530.
---
 cpukit/ftpd/ftpd.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cpukit/ftpd/ftpd.c b/cpukit/ftpd/ftpd.c
index c9f6f656e3..b319dae9ed 100644
--- a/cpukit/ftpd/ftpd.c
+++ b/cpukit/ftpd/ftpd.c
@@ -2041,6 +2041,8 @@ ftpd_daemon(rtems_task_argument args RTEMS_UNUSED)
       }
     }
   }
+
+  close(s);
   rtems_task_exit();
 }
 
-- 
2.16.4




More information about the devel mailing list