Skip to content

Commit 4e1946f

Browse files
committed
nit
1 parent ff34816 commit 4e1946f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Python/sysmodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,6 +1108,7 @@ sys_set_object_tag_impl(PyObject *module, PyObject *object, const char *tag,
11081108
{
11091109
assert(object != NULL);
11101110
if (strcmp(tag, "interned") == 0) {
1111+
Py_INCREF(object);
11111112
_PyUnicode_InternMortal(_PyInterpreterState_GET(), &object);
11121113
}
11131114
else if(strcmp(tag, "deferred_refcount") == 0) {

0 commit comments

Comments
 (0)