]> err.no Git - systemd/commitdiff
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 a6b8f859aa948946fa025130ee2c1a0ce4381cf3..21bf44d3a41b57897072edfccf9e313452b26a4b 100644 (file)
@@ -157,6 +157,7 @@ static void load_unix_sockets(void) {
                 }
         }
 
+        fclose(f);
         return;
 
 fail: