Skip to content

_PyStaticUnicode_Dealloc should not exist. #96458

Closed
@markshannon

Description

@markshannon

Static data doesn't need to be freed. In fact, in cannot be freed.

It appears that the utf field is dynamically allocated on static strings. Since this field is only needed for non-ascii strings, it should be static as well.
Then _PyStaticUnicode_Dealloc can be deleted.

Metadata

Metadata

Labels

3.12only security fixestype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions