Forums & community:FwpmNetEventEnum5 have a lot of memory leak in windows10

继勤 丁 1 Reputation point
2021-09-22T08:05:12.117+00:00

After executing FwpmNetEventEnum5, there is a lot of memory leak after calling FwpmFreeMemory0.

The current operating system version is windows 10.0.19042

And I have raised the bug in the GitHub sample:https://github.com/microsoft/Windows-classic-samples/issues/202

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,069 questions
Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,046 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Xiaopo Yang - MSFT 7,106 Reputation points Microsoft Vendor
    2021-09-23T07:10:12.653+00:00

    After replacing FwpmNetEventEnum0 with FwpmNetEventEnum5, I did not find memory leak in diagevents sample but I used an invalid remoteAddr. My windows10 OS build is 19042.928.