Skip to content
This repository was archived by the owner on Jan 15, 2026. It is now read-only.
This repository was archived by the owner on Jan 15, 2026. It is now read-only.

atexit handler leaks connection instances #676

Closed

Description

@douglas-raillard-arm

While reviewing unrelated code, I realized we leak the connection objects when doing:

atexit.register(self.close)

            atexit.register(self.close)

This should be fixable with a WeakMethod, and the callback used to call atexit.unregister()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions