EnterpriseDB / system_stats

A Postgres extension for exposing system metrics such as CPU, memory and disk information
Other
111 stars 24 forks source link

fix the memory leak in windows #22

Closed neel5481 closed 9 months ago

neel5481 commented 9 months ago

Fix the memory leak as per the doc here ( https://learn.microsoft.com/en-us/windows/win32/api/wbemcli/nf-wbemcli-iwbemclassobject-get )

VARIANT type needs to be clear properly.

Reported by @xianglin1998

neel5481 commented 9 months ago

@asheshv @dpage-edb can you please review ?