From 0eba9b37083720372e7dc55ad1c68842c55b1348 Mon Sep 17 00:00:00 2001 From: Cleverson Date: Fri, 20 Dec 2019 07:12:46 -0300 Subject: [PATCH] Close cmdaccess.ini file if fopen found the file... (#815) Close file if fopen found the file... --- amxmodx/CFlagManager.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/amxmodx/CFlagManager.h b/amxmodx/CFlagManager.h index cec800a3..95fd010d 100644 --- a/amxmodx/CFlagManager.h +++ b/amxmodx/CFlagManager.h @@ -143,6 +143,10 @@ private: fclose(fp); }; } + else + { + fclose(fp); + } }; /** * Returns 1 if the timestamp for the file is different than the one we have loaded