StackExchange / wmi

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

Memory leak #3

Closed maddyblue closed 9 years ago

maddyblue commented 10 years ago

There's a memory leak. Run WMI queries in a loop and it'll just go up. My guess is the syscalls allocate memory but then don't free it when done.

maddyblue commented 10 years ago

See https://github.com/mattn/go-ole/pull/21 for something that might work. My tests show segfaults, so needs some changes, but maybe on the right track.