microsoft / Windows-classic-samples

This repo contains samples that demonstrate the API used in Windows classic desktop applications.
Other
5.1k stars 3.23k forks source link

Memory not freed from FwpmNetEventEnum #322

Open jjxtra opened 11 months ago

jjxtra commented 11 months ago

https://github.com/microsoft/Windows-classic-samples/blob/44d192fd7ec6f2422b7d023891c5f805ada2c811/Samples/Win7Samples/netds/wfp/diagevents/diagevents.c#L284

This call appears to do nothing. Letting this run overnight and memory usage increased by several hundred MB. Commenting out the FwpmNetEventEnum0 call removes the memory leak.