chiark / gitweb /
udevd: close /proc/meminfo after reading
authorKay Sievers <kay.sievers@vrfy.org>
Fri, 11 May 2007 14:53:56 +0000 (16:53 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Fri, 11 May 2007 14:53:56 +0000 (16:53 +0200)
udevd.c

diff --git a/udevd.c b/udevd.c
index fe01d8d..05df871 100644 (file)
--- a/udevd.c
+++ b/udevd.c
@@ -335,6 +335,7 @@ static int mem_size_mb(void)
                }
        }
 
+       fclose(f);
        return memsize;
 }