StackExchange / wmi

WMI for Go
http://godoc.org/github.com/StackExchange/wmi
MIT License
433 stars 173 forks source link

Possible memory leak in coinitService for CallMethod #61

Open yusufozturk opened 3 years ago

yusufozturk commented 3 years ago

image

If oleutil.CallMethod returns error, which is very possible in a high WMI load situations, then we do not release "wmi" or "unknown" objects. Also we are not able to call ole.CoUninitialize() anymore.

jesus-velez commented 2 years ago

@yusufozturk based on https://github.com/influxdata/telegraf/issues/6807#issuecomment-590256733 would you know how to fix this? I am not a go programmer but willing to test.