projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3c38ff
)
Don't DECREF a borrowed reference.
author
Thomas Wouters
<thomas@python.org>
Tue, 7 Mar 2006 11:58:50 +0000
(11:58 +0000)
committer
Thomas Wouters
<thomas@python.org>
Tue, 7 Mar 2006 11:58:50 +0000
(11:58 +0000)
Modules/regexmodule.c
patch
|
blob
|
history
diff --git
a/Modules/regexmodule.c
b/Modules/regexmodule.c
index fe4cc9a073bf368dd364c0d5948c0599e37ff4cb..2fb41982077dde2d5bae58de6cff7908d0086e7d 100644
(file)
--- 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);