X Tutup
Skip to content

Multiple reference leaks for TypeError #24

@tiran

Description

@tiran

attrs_from_List() has a reference leak in its error path. Py_BuildValue("sO", "expected string in list", item) returns a new reference. PyErr_SetObject() does not steal a reference. Instead it increments the reference count of the object again. The original reference is leaked.

PyErr_SetObject(PyExc_TypeError, Py_BuildValue("sO",
"expected string in list", item));

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

      X Tutup