]> granicus.if.org Git - python/commitdiff
Don't DECREF a borrowed reference.
authorThomas Wouters <thomas@python.org>
Tue, 7 Mar 2006 11:58:50 +0000 (11:58 +0000)
committerThomas Wouters <thomas@python.org>
Tue, 7 Mar 2006 11:58:50 +0000 (11:58 +0000)
Modules/regexmodule.c

index fe4cc9a073bf368dd364c0d5948c0599e37ff4cb..2fb41982077dde2d5bae58de6cff7908d0086e7d 100644 (file)
@@ -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);