8000 `Python/instrumentation.c`: ensure non-NULL `PyLong_FromLong` results when possible · Issue #134411 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content
Python/instrumentation.c: ensure non-NULL PyLong_FromLong results when possible #134411
Open
@smurav

Description

@smurav

Py_DECREF(val);

Since PyLong_FromLong can return NULL, it is necessary to use Py_XDECREF, as stated in refcount.h.

NULL pointer. If it may be NULL, use Py_XINCREF/Py_XDECREF instead.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    easyinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0