Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Possible memory leak in WindowsPackageManager #115

@ujjwalchadha

Description

@ujjwalchadha

Dev Home version

No response

Windows build number

No response

Other software

No response

Steps to reproduce

No response

Expected behavior

No response

Actual behavior

In the CreateInstance() method, we do AddRef (indirectly) on the native object twice:

1st when doing CoCreateInstance
2nd when doing FromAbi on the native pointer

This can result in the native object never being cleaned. We should do one release immediately. The other release would automatically be done when the object goes out of scope.

Included System Information

No response

Metadata

Metadata

Assignees

Labels

Issue-BugSomething isn't working or needs investigationResolution-Fix-AvailableAvailable in a release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions