We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29e46a9 commit 8cf0476Copy full SHA for 8cf0476
Objects/stringobject.c
@@ -1073,3 +1073,21 @@ PyString_InternFromString(cp)
1073
}
1074
1075
#endif
1076
+
1077
+void
1078
+PyString_Fini()
1079
+{
1080
+ int i;
1081
+#ifdef INTERN_STRINGS
1082
+ Py_XDECREF(interned);
1083
+ interned = NULL;
1084
+#endif
1085
+ for (i = 0; i < UCHAR_MAX + 1; i++) {
1086
+ Py_XDECREF(characters[i]);
1087
+ characters[i] = NULL;
1088
+ }
1089
+#ifndef DONT_SHARE_SHORT_STRINGS
1090
+ Py_XDECREF(nullstring);
1091
+ nullstring = NULL;
1092
1093
+}
0 commit comments