summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2006-03-07 11:58:50 +0000
committerThomas Wouters <thomas@python.org>2006-03-07 11:58:50 +0000
commit61c2602414cadf72b4e1b58b5dc42ff9fe477369 (patch)
tree27fc7abbfe80848c5ab51f35ec9294847cce3266
parent905ea010bbe1c7374177f179b34f6683a326be44 (diff)
downloadcpython-61c2602414cadf72b4e1b58b5dc42ff9fe477369.tar.gz
Don't DECREF a borrowed reference.
-rw-r--r--Modules/regexmodule.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Modules/regexmodule.c b/Modules/regexmodule.c
index fe4cc9a073..2fb4198207 100644
--- a/Modules/regexmodule.c
+++ b/Modules/regexmodule.c
@@ -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);