microsoft / microsoft/Windows-classic-samples

Memory not freed from FwpmNetEventEnum

Open
#322 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
5.7k
Forks
3.3k
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at Samples/Win7Samples/netds/wfp/diagevents/diagevents.c around line 284 and inspect the FwpmNetEventEnum0 call and its surrounding resource handling. Reproduce the enumeration workload and compare memory usage with and without that call; done means the sample no longer shows the reported memory growth.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.