Skip to content

Commit c56daf2

Browse files
fangererqunaibit
authored andcommitted
Do nothing for managed self in unicode_dealloc
1 parent 6baa911 commit c56daf2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

graalpython/com.oracle.graal.python.cext/src/unicodeobject.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1723,6 +1723,11 @@ unicode_dealloc(PyObject *unicode)
17231723
}
17241724
#endif
17251725

1726+
// GraalPy change
1727+
if (points_to_py_handle_space(unicode)) {
1728+
return;
1729+
}
1730+
17261731
#if 0 // GraalPy change
17271732
switch (PyUnicode_CHECK_INTERNED(unicode)) {
17281733
case SSTATE_NOT_INTERNED:

0 commit comments

Comments
 (0)