From 31068145405d0b12d1eb1a05aa33fbea9da8ad45 Mon Sep 17 00:00:00 2001 From: "Alessandro Dutra de Andrade (cachopaweb)" <46660852+cachopaweb@users.noreply.github.com> Date: Mon, 23 Sep 2024 23:07:38 -0400 Subject: [PATCH] Update Horse.ServerStatic.pas It is not necessary to release the LFileStream variable, Horse itself already releases it from memory. Corrected by Herbert from 99 coders --- src/Horse.ServerStatic.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Horse.ServerStatic.pas b/src/Horse.ServerStatic.pas index 66e06e6..24dfd14 100644 --- a/src/Horse.ServerStatic.pas +++ b/src/Horse.ServerStatic.pas @@ -110,11 +110,11 @@ procedure Middleware(Req: THorseRequest; Res: THorseResponse; Next: {$IF DEFINED Res.RawWebResponse.SendResponse; raise EHorseCallbackInterrupted.Create; finally - LFileStream.Free; + //LFileStream.Free; //Corrected by Herbert from 99 coders end; end; Next; end; -end. \ No newline at end of file +end.