From 52767826d5ff7188de0119357d1159986e67e48c Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 22 Mar 2024 01:35:02 -0700 Subject: [PATCH] =?UTF-8?q?memory=20leak=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/web/live/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/web/live/main.go b/pkg/web/live/main.go index be0f5e8..c64efa1 100644 --- a/pkg/web/live/main.go +++ b/pkg/web/live/main.go @@ -139,6 +139,7 @@ func NewMachineChallenge(i *do.Injector, r *http.Request, w http.ResponseWriter) func NewMachineChallengeHandler(i *do.Injector, r *http.Request, w http.ResponseWriter, c *net.Conn) { conn := *c + defer conn.Close() // first message sent should be JSON payload userMachine, err := utils.ReadClientMessage[dto.UserMachineDto](&conn) if err != nil {