Skip to content

Memory leak in function fname2char due to new reference is not decreased (static analyzer report) #6319

@Snape3058

Description

@Snape3058
  1. A new reference is returned and assigned to bytes.

    bytes = PyUnicode_EncodeFSDefault(fname);

  2. Function returns without decreasing the refcnt of bytes.

    return PyBytes_AsString(bytes);

Internal Report ID: c6d448

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions