Closed xianglin1998 closed 9 months ago
After my test, if function is implement from WMI, the all logic will memory leak after Get
Get
VARIANT type need correct Clear
Clear
Read doc from Microsoft, we can get correct fixed. Release function is VariantClear.
Microsoft
VariantClear
https://learn.microsoft.com/en-us/windows/win32/api/wbemcli/nf-wbemcli-iwbemclassobject-get
(BTW: Indeed very few people running commercial databases on Windows.)
Thank you @xianglin1998 WIP PR ( https://github.com/EnterpriseDB/system_stats/pull/22 )
Thank you.
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 isVariantClear
.https://learn.microsoft.com/en-us/windows/win32/api/wbemcli/nf-wbemcli-iwbemclassobject-get
(BTW: Indeed very few people running commercial databases on Windows.)