Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF

in places where Py_DECREF was used.
This commit is contained in:
Serhiy Storchaka 2016-04-10 18:05:40 +03:00
parent e0805cf10e
commit 57a01d3a0e
20 changed files with 52 additions and 42 deletions

View file

@ -155,7 +155,7 @@ zipimporter_init(ZipImporter *self, PyObject *args, PyObject *kwds)
tmp = PyUnicode_FromFormat("%U%c", self->prefix, SEP);
if (tmp == NULL)
goto error;
Py_XSETREF(self->prefix, tmp);
Py_SETREF(self->prefix, tmp);
}
}
else