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.
Static data doesn't need to be freed. In fact, in cannot be freed.
It appears that the
utffield is dynamically allocated on static strings. Since this field is only needed for non-ascii strings, it should be static as well.Then
_PyStaticUnicode_Dealloccan be deleted.