From 87073a3699813e006649c2f4d18f819c689ededb Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 30 Dec 2008 16:06:06 -0800 Subject: [PATCH] vswitchd: Fix fd leaks by closing files that we read in read_file(). Fixes bug #697. Thanks to Martin for reporting this bug. --- vswitchd/cfg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vswitchd/cfg.c b/vswitchd/cfg.c index 55f43199..b0915494 100644 --- a/vswitchd/cfg.c +++ b/vswitchd/cfg.c @@ -615,6 +615,8 @@ read_file(const char *file_name) svec_sort(&cfg); svec_terminate(&cfg); + + fclose(file); } static int -- 2.30.2