[Python-checkins] r42881 - python/trunk/Modules/regexmodule.c
thomas.wouters
python-checkins at python.org
Tue Mar 7 12:58:50 CET 2006
Author: thomas.wouters
Date: Tue Mar 7 12:58:50 2006
New Revision: 42881
Modified:
python/trunk/Modules/regexmodule.c
Log:
Don't DECREF a borrowed reference.
Modified: python/trunk/Modules/regexmodule.c
==============================================================================
--- python/trunk/Modules/regexmodule.c (original)
+++ python/trunk/Modules/regexmodule.c Tue Mar 7 12:58:50 2006
@@ -536,7 +536,6 @@
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);
More information about the Python-checkins
mailing list