tmpfiles: fix file descriptor leak
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 5 Oct 2011 20:30:49 +0000 (22:30 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 10 Oct 2011 20:28:04 +0000 (22:28 +0200)
Detected by "cppcheck"

src/tmpfiles.c

index a6b8f85..21bf44d 100644 (file)
@@ -157,6 +157,7 @@ static void load_unix_sockets(void) {
                 }
         }
 
+        fclose(f);
         return;
 
 fail: