From c0223c2c1568669b3e7b7950e3ddfa32f4095d10 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Tue, 26 Jan 2010 19:04:06 +0000 Subject: [PATCH] Close file handle after use --- jm2cv.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jm2cv.cpp b/jm2cv.cpp index ff3b089..c97e2db 100644 --- a/jm2cv.cpp +++ b/jm2cv.cpp @@ -119,6 +119,8 @@ bool read_config(const char *filename) } } + fclose(f); + if (!good) { std::cerr << "Error(s) in configuration file, stopping." << std::endl; }