Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[usb/usbview] Fix memory leak when handling enumeration error cases #1222

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

dkala97
Copy link

@dkala97 dkala97 commented Sep 26, 2024

When handling error cases in the EnumerateHub function, the following objects aren't freed:

  • ConnectionInfoV2
  • PortConnectorProps
  • DevProps
  • hubCapabilityEx

When handling error cases in the EnumerateHubPorts function, when a port is not a hub, the following objects aren't freed:

  • stringDescs
  • DevProps

@dkala97 dkala97 requested a review from a team as a code owner September 26, 2024 21:42
@dkala97
Copy link
Author

dkala97 commented Sep 26, 2024

@microsoft-github-policy-service agree

@dkala97
Copy link
Author

dkala97 commented Oct 1, 2024

Kindly reminder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant