We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a435ea commit 6d72686Copy full SHA for 6d72686
Modules/_json.c
@@ -1376,23 +1376,23 @@ _encoded_const(PyObject *obj)
1376
if (s_null == NULL) {
1377
s_null = PyUnicode_InternFromString("null");
1378
}
1379
- Py_INCREF(s_null);
+ Py_XINCREF(s_null);
1380
return s_null;
1381
1382
else if (obj == Py_True) {
1383
static PyObject *s_true = NULL;
1384
if (s_true == NULL) {
1385
s_true = PyUnicode_InternFromString("true");
1386
1387
- Py_INCREF(s_true);
+ Py_XINCREF(s_true);
1388
return s_true;
1389
1390
else if (obj == Py_False) {
1391
static PyObject *s_false = NULL;
1392
if (s_false == NULL) {
1393
s_false = PyUnicode_InternFromString("false");
1394
1395
- Py_INCREF(s_false);
+ Py_XINCREF(s_false);
1396
return s_false;
1397
1398
else {
0 commit comments