[rtems commit] ftpd: Avoid resource leak

Sebastian Huber sebh at rtems.org
Mon Oct 8 05:16:58 UTC 2018


Module:    rtems
Branch:    master
Commit:    df97c4d25fc2476acd1cf26ed3e8fd33df424983
Changeset: http://git.rtems.org/rtems/commit/?id=df97c4d25fc2476acd1cf26ed3e8fd33df424983

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Oct  5 14:56:10 2018 +0200

ftpd: Avoid resource leak

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 c9f6f65..b319dae 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();
 }
 



More information about the vc mailing list