From 3316b274966b9628b3c91d932af198001b9e9039 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Thu, 11 Apr 2024 14:37:29 +0100 Subject: [PATCH] Fix: Signature validation did not close its file. (#12479) --- src/signature.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/signature.cpp b/src/signature.cpp index a329410e35..2b64676e5d 100644 --- a/src/signature.cpp +++ b/src/signature.cpp @@ -205,6 +205,7 @@ static bool _ValidateSignatureFile(const std::string &filename) std::string text(filesize, '\0'); size_t len = fread(text.data(), filesize, 1, f); + FioFCloseFile(f); if (len != 1) { Debug(misc, 0, "Failed to validate signature: failed to read file: {}", filename); return false;