mirror of https://github.com/python/cpython
Don't DECREF a borrowed reference.
This commit is contained in:
parent
d3c38ff7f8
commit
8eb8a829c1
|
@ -536,7 +536,6 @@ regex_symcomp(PyObject *self, PyObject *args)
|
|||
gdict = PyDict_New();
|
||||
if (gdict == NULL || (npattern = symcomp(pattern, gdict)) == NULL) {
|
||||
Py_XDECREF(gdict);
|
||||
Py_DECREF(pattern);
|
||||
return NULL;
|
||||
}
|
||||
retval = newregexobject(npattern, tran, pattern, gdict);
|
||||
|
|
Loading…
Reference in New Issue