Skip to content

Commit 8eb8a82

Browse files
committed
Don't DECREF a borrowed reference.
1 parent d3c38ff commit 8eb8a82

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Modules/regexmodule.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,6 @@ regex_symcomp(PyObject *self, PyObject *args)
536536
gdict = PyDict_New();
537537
if (gdict == NULL || (npattern = symcomp(pattern, gdict)) == NULL) {
538538
Py_XDECREF(gdict);
539-
Py_DECREF(pattern);
540539
return NULL;
541540
}
542541
retval = newregexobject(npattern, tran, pattern, gdict);

0 commit comments

Comments
 (0)