[systemd-devel] [PATCH 1/2] Fix file descriptor leak

Thomas Jarosch thomas.jarosch at intra2net.com
Wed Oct 5 13:30:49 PDT 2011


Detected by "cppcheck"

Please CC: comments.

Signed-off-by: Thomas Jarosch <thomas.jarosch at intra2net.com>
---
 src/tmpfiles.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/tmpfiles.c b/src/tmpfiles.c
index a6b8f85..21bf44d 100644
--- a/src/tmpfiles.c
+++ b/src/tmpfiles.c
@@ -157,6 +157,7 @@ static void load_unix_sockets(void) {
                 }
         }
 
+        fclose(f);
         return;
 
 fail:
-- 
1.7.4.4



More information about the systemd-devel mailing list