We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3045797 + 3773f6f commit 44c71b6Copy full SHA for 44c71b6
mem/mem_windows.go
@@ -82,6 +82,8 @@ func SwapMemoryWithContext(ctx context.Context) (*SwapMemoryStat, error) {
82
if err != nil {
83
return nil, err
84
}
85
+ defer common.PdhCloseQuery.Call(uintptr(counter.Query))
86
+
87
usedPercent, err := counter.GetValue()
88
89
0 commit comments