Mercurial > cpython-lru_cache-weakref
diff Modules/regexmodule.c @ 36861:895074e5ed3a legacy-trunk
Thanks to Coverity, these were all reported by their Prevent tool.
All of these (except _lsprof.c) should be backported. Particularly
the hotshot change which validates sys.path. Can someone backport?
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Tue, 07 Mar 2006 04:48:24 +0000 |
| parents | 1af7f719ed28 |
| children | 1e191392ec5c |
line wrap: on
line diff
--- a/Modules/regexmodule.c Mon Mar 06 23:31:56 2006 +0000 +++ b/Modules/regexmodule.c Tue Mar 07 04:48:24 2006 +0000 @@ -535,7 +535,7 @@ gdict = PyDict_New(); if (gdict == NULL || (npattern = symcomp(pattern, gdict)) == NULL) { - Py_DECREF(gdict); + Py_XDECREF(gdict); Py_DECREF(pattern); return NULL; }
