Thanks to visit codestin.com Credit goes to github.com
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 0dd7180 commit 6f82bffCopy full SHA for 6f82bff
1 file changed
Modules/_json.c
@@ -1374,23 +1374,23 @@ _encoded_const(PyObject *obj)
1374
if (s_null == NULL) {
1375
s_null = PyUnicode_InternFromString("null");
1376
}
1377
- Py_INCREF(s_null);
+ Py_XINCREF(s_null);
1378
return s_null;
1379
1380
else if (obj == Py_True) {
1381
static PyObject *s_true = NULL;
1382
if (s_true == NULL) {
1383
s_true = PyUnicode_InternFromString("true");
1384
1385
- Py_INCREF(s_true);
+ Py_XINCREF(s_true);
1386
return s_true;
1387
1388
else if (obj == Py_False) {
1389
static PyObject *s_false = NULL;
1390
if (s_false == NULL) {
1391
s_false = PyUnicode_InternFromString("false");
1392
1393
- Py_INCREF(s_false);
+ Py_XINCREF(s_false);
1394
return s_false;
1395
1396
else {
0 commit comments