Tested with npcap 0.9988 + win10
A lot of memory leak happen on paged pools with tag Mdl and NPBL. NPBL is only used by npcap.sys, and it leak 50% of allocs, and also the same leak count for Mdl.
This only happen for me when a lot of data is send and recv though loopback, and an capture (can also be tested with wireshark) on another eths.
(EVEN when loopback is not captured, which I used to think npcap should do nothing in this case, is it another bug?)
|
/* First NBL is pre-allocated, so skip that one. */ |
|
pFakeNetBuffer = NET_BUFFER_NEXT_NB(NET_BUFFER_LIST_FIRST_NB(pFakeNbl)); |
Is the comments here and
NET_BUFFER_NEXT_NB really right? Seems the above logic didn't skip the first node.

Use https://github.com/zodiacon/AllTools/blob/master/PoolMonXv2.exe, can also get almost the same result with poolmon from Mircosoft.
Tested with npcap 0.9988 + win10
A lot of memory leak happen on paged pools with tag
MdlandNPBL. NPBL is only used by npcap.sys, and it leak 50% of allocs, and also the same leak count forMdl.This only happen for me when a lot of data is send and recv though loopback, and an capture (can also be tested with wireshark) on another eths.
(EVEN when loopback is not captured, which I used to think npcap should do nothing in this case, is it another bug?)
npcap/packetWin7/npf/npf/Loopback.c
Lines 439 to 440 in 39b72d0
Is the comments here and
NET_BUFFER_NEXT_NBreally right? Seems the above logic didn't skip the first node.Use https://github.com/zodiacon/AllTools/blob/master/PoolMonXv2.exe, can also get almost the same result with poolmon from Mircosoft.