From 359ca8430c639f6791372b0b0590ed1d627ada40 Mon Sep 17 00:00:00 2001 From: Maksim An Date: Thu, 3 Mar 2022 16:38:48 -0800 Subject: [PATCH] fix lint issue Signed-off-by: Maksim An --- internal/jobcontainers/logon.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/jobcontainers/logon.go b/internal/jobcontainers/logon.go index 056d06e1b5..0ccfebd4da 100644 --- a/internal/jobcontainers/logon.go +++ b/internal/jobcontainers/logon.go @@ -31,7 +31,9 @@ func groupExists(groupName string) bool { ); err != nil { return false } - defer windows.NetApiBufferFree(p) + defer func() { + _ = windows.NetApiBufferFree(p) + }() return true }