From 85c79d2f1cc851bb352a686ce8f53bc326f967d8 Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Fri, 26 Mar 2021 19:02:27 -0400 Subject: [PATCH] fclose when fopen actually succeeds --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 1080f8f..eace1d5 100644 --- a/main.cpp +++ b/main.cpp @@ -631,8 +631,8 @@ int main(int argc, char **argv) { FILE *fp = fopen(OPTS_OPTION_STR(OPTION_PROGSRC), "rb"); if (fp) { has_progs_src = true; + fclose(fp); } - fclose(fp); } if (has_progs_src) { -- 2.39.2