From e3a3eb92a467c6b907b17b0ef33e036a0f3dae00 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sun, 23 Feb 2014 22:10:34 +0100 Subject: [PATCH] bantool: Close .conf files when done reading. Not very many files are read, so leaving them open is not a major issue. --- bandb/bantool.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bandb/bantool.c b/bandb/bantool.c index 81797449..930099d0 100644 --- a/bandb/bantool.c +++ b/bandb/bantool.c @@ -542,6 +542,8 @@ import_config(const char *conf, int id) if(flag.verbose) fprintf(stdout, "%*s\n", strlen(bandb_suffix[id]) > 0 ? 10 : 15, "imported."); + fclose(fd); + return; }