There was an error while loading. Please reload this page.
1 parent c0bf760 commit 387f725Copy full SHA for 387f725
1 file changed
Objects/longobject.c
@@ -2376,6 +2376,7 @@ pylong_int_from_string(const char *start, const char *end, PyLongObject **res)
2376
goto error;
2377
}
2378
if (!PyLong_Check(result)) {
2379
+ Py_DECREF(result);
2380
PyErr_SetString(PyExc_TypeError,
2381
"_pylong.int_from_string did not return an int");
2382
0 commit comments