Skip to content

Commit

Permalink
Don't DECREF a borrowed reference.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yhg1s committed Mar 7, 2006
1 parent d3c38ff commit 8eb8a82
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Modules/regexmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8eb8a82

Please sign in to comment.