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 020bf28 commit e80b29bCopy full SHA for e80b29b
1 file changed
Modules/_pickle.c
@@ -2815,18 +2815,24 @@ static int
2815
save_ellipsis(PicklerObject *self, PyObject *obj)
2816
{
2817
PyObject *str = PyUnicode_FromString("Ellipsis");
2818
+ int res;
2819
if (str == NULL)
2820
return -1;
- return save_global(self, Py_Ellipsis, str);
2821
+ res = save_global(self, Py_Ellipsis, str);
2822
+ Py_DECREF(str);
2823
+ return res;
2824
}
2825
2826
static int
2827
save_notimplemented(PicklerObject *self, PyObject *obj)
2828
2829
PyObject *str = PyUnicode_FromString("NotImplemented");
2830
2831
2832
- return save_global(self, Py_NotImplemented, str);
2833
+ res = save_global(self, Py_NotImplemented, str);
2834
2835
2836
2837
2838
0 commit comments