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: http://review.tizen.org/git/?a=commitdiff_plain;h=10d975f54c88223fb8762a226fd011ec3f30f2eb;p=platform%2Fupstream%2Fsystemd.git tmpfiles: fix file descriptor leak Detected by "cppcheck" --- 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: