Don't DECREF a borrowed reference.

This commit is contained in:
Thomas Wouters 2006-03-07 11:58:50 +00:00
parent d3c38ff7f8
commit 8eb8a829c1
1 changed files with 0 additions and 1 deletions

View File

@ -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);