From 8eb8a829c1e4535be9d98b70875d5193f6b94737 Mon Sep 17 00:00:00 2001 From: Thomas Wouters Date: Tue, 7 Mar 2006 11:58:50 +0000 Subject: [PATCH] Don't DECREF a borrowed reference. --- Modules/regexmodule.c | 1 - 1 file changed, 1 deletion(-) diff --git a/Modules/regexmodule.c b/Modules/regexmodule.c index fe4cc9a073b..2fb41982077 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);