Skip to content

Reference leak in _contextvars.Context.run() #120811

Closed
@ZeroIntensity

Description

@ZeroIntensity

Bug report

Bug description:

In _contextvars.Context.run, call_result is not Py_DECREF'd if _PyContext_Exit fails. See here.

CPython versions tested on:

3.11

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions