Potential memory leak in Objects/bytesobject.c · Issue #101056 · python/cpython · GitHub
Skip to content

Potential memory leak in Objects/bytesobject.c #101056

Description

@RuiliF

Bug report


At line 438, object p won't be freed if _PyBytesWriter_Prepare fails (returns NULL) and thus become a memory leak.

Linked PRs

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

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions