File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1893,23 +1893,23 @@ _encoded_const(PyObject *obj)
1893
1893
if (s_null == NULL ) {
1894
1894
s_null = PyString_InternFromString ("null" );
1895
1895
}
1896
- Py_INCREF (s_null );
1896
+ Py_XINCREF (s_null );
1897
1897
return s_null ;
1898
1898
}
1899
1899
else if (obj == Py_True ) {
1900
1900
static PyObject * s_true = NULL ;
1901
1901
if (s_true == NULL ) {
1902
1902
s_true = PyString_InternFromString ("true" );
1903
1903
}
1904
- Py_INCREF (s_true );
1904
+ Py_XINCREF (s_true );
1905
1905
return s_true ;
1906
1906
}
1907
1907
else if (obj == Py_False ) {
1908
1908
static PyObject * s_false = NULL ;
1909
1909
if (s_false == NULL ) {
1910
1910
s_false = PyString_InternFromString ("false" );
1911
1911
}
1912
- Py_INCREF (s_false );
1912
+ Py_XINCREF (s_false );
1913
1913
return s_false ;
1914
1914
}
1915
1915
else {
You can’t perform that action at this time.
0 commit comments