Skip to content

Commit

Permalink
memory leak…
Browse files Browse the repository at this point in the history
  • Loading branch information
therealpaulgg authored Mar 22, 2024
1 parent 2d7c1aa commit 5276782
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/web/live/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5276782

Please sign in to comment.