Skip to content

NetworkReachability.SetNotification leaks a GCHandle #12962

@rolfbjarne

Description

@rolfbjarne

The GCHandle allocated here:

https://github.com/xamarin/xamarin-macios/blob/2930c052b32318af63c1f3b90f6447f6907548b8/src/SystemConfiguration/NetworkReachability.cs#L252

is never freed.

Also we don't have tests for NetworkReachability.SetNotification.

Metadata

Metadata

Assignees

Labels

bugIf an issue is a bug or a pull request a bug fixcopilot-candidategood first issueThis is a good first issue for someone to start working with our code

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions