EnterpriseDB/system_stats

Memory leak on windows

xianglin1998 opened this issue · 2 comments

After my test, if function is implement from WMI, the all logic will memory leak after Get

VARIANT type need correct Clear

Read doc from Microsoft, we can get correct fixed. Release function is VariantClear.

https://learn.microsoft.com/en-us/windows/win32/api/wbemcli/nf-wbemcli-iwbemclassobject-get
image

(BTW: Indeed very few people running commercial databases on Windows.)

Thank you @xianglin1998 WIP PR ( #22 )

Thank you.