From 378d89af2ff1da93d1cc9b07f4719d47675b219a Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Thu, 30 Jul 2015 14:02:46 +0300 Subject: [PATCH] Fix resource leak when reading hamdata.ini --- modules/hamsandwich/config_parser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/hamsandwich/config_parser.cpp b/modules/hamsandwich/config_parser.cpp index d10580d0..7de22365 100644 --- a/modules/hamsandwich/config_parser.cpp +++ b/modules/hamsandwich/config_parser.cpp @@ -384,5 +384,7 @@ int ReadConfig(void) } + fclose(fp); + return 1; }