Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d4fff17

Browse files
committed
Fix leaked reference to None.
1 parent b45b315 commit d4fff17

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Objects/unicodeobject.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2928,6 +2928,7 @@ PyObject *PyUnicode_DecodeCharmap(const char *s,
29282928
Py_DECREF(x);
29292929
goto onError;
29302930
}
2931+
Py_DECREF(x);
29312932
continue;
29322933
}
29332934
else if (PyUnicode_Check(x)) {

0 commit comments

Comments
 (0)