Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix a refleak.
  • Loading branch information
serhiy-storchaka committed Oct 3, 2019
commit 8eb7361241459876e63625eaca460640266d72cb
1 change: 1 addition & 0 deletions Modules/_tkinter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1117,6 +1117,7 @@ AsObj(PyObject *value)
}
size = PyBytes_GET_SIZE(encoded);
if (size > INT_MAX) {
Comment thread
serhiy-storchaka marked this conversation as resolved.
Py_DECREF(encoded);
PyErr_SetString(PyExc_OverflowError, "string is too long");
return NULL;
}
Expand Down