diff options
author | Thomas Wouters <thomas@python.org> | 2006-03-07 11:58:50 +0000 |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2006-03-07 11:58:50 +0000 |
commit | 8eb8a829c1e4535be9d98b70875d5193f6b94737 (patch) | |
tree | 1b03a682ea23b63abe27dcec504cbdd30df64f40 /Modules/regexmodule.c | |
parent | d3c38ff7f832f60830532524e07a5e11be749d7e (diff) | |
download | cpython-git-8eb8a829c1e4535be9d98b70875d5193f6b94737.tar.gz |
Don't DECREF a borrowed reference.
Diffstat (limited to 'Modules/regexmodule.c')
-rw-r--r-- | Modules/regexmodule.c | 1 |
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); |