Commit 8eb8a829 authored by Thomas Wouters's avatar Thomas Wouters

Don't DECREF a borrowed reference.

parent d3c38ff7
...@@ -536,7 +536,6 @@ regex_symcomp(PyObject *self, PyObject *args) ...@@ -536,7 +536,6 @@ regex_symcomp(PyObject *self, PyObject *args)
gdict = PyDict_New(); gdict = PyDict_New();
if (gdict == NULL || (npattern = symcomp(pattern, gdict)) == NULL) { if (gdict == NULL || (npattern = symcomp(pattern, gdict)) == NULL) {
Py_XDECREF(gdict); Py_XDECREF(gdict);
Py_DECREF(pattern);
return NULL; return NULL;
} }
retval = newregexobject(npattern, tran, pattern, gdict); retval = newregexobject(npattern, tran, pattern, gdict);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment