]> err.no Git - systemd/commitdiff
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 fe01d8d4b909b6eef41719f758780b1dabfd8280..05df871a3493ab900774110eff104dd2b0a64ed6 100644 (file)
--- a/udevd.c
+++ b/udevd.c
@@ -335,6 +335,7 @@ static int mem_size_mb(void)
                }
        }
 
+       fclose(f);
        return memsize;
 }