From: Thomas Jarosch Date: Wed, 5 Oct 2011 20:30:49 +0000 (+0200) Subject: tmpfiles: fix file descriptor leak X-Git-Tag: v37~21 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10d975f54c88223fb8762a226fd011ec3f30f2eb;p=systemd tmpfiles: fix file descriptor leak Detected by "cppcheck" --- diff --git a/src/tmpfiles.c b/src/tmpfiles.c index a6b8f859..21bf44d3 100644 --- a/src/tmpfiles.c +++ b/src/tmpfiles.c @@ -157,6 +157,7 @@ static void load_unix_sockets(void) { } } + fclose(f); return; fail: