commit | bf338300ff50bef79b774f0ab956db7cea260c80 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon Oct 19 13:38:36 1998 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon Oct 19 13:38:36 1998 +0000 |
tree | a5cd111ea9045606b12de21dc84b531110ca7af0 | |
parent | 18fa7d280003beaab24a8e2b05a8226af73a4105 [diff] [blame] |
Add a missing DECREF in an error exit. Submitted by Jonathan Giddy.
diff --git a/Modules/stropmodule.c b/Modules/stropmodule.c index 3921d34..240a056 100644 --- a/Modules/stropmodule.c +++ b/Modules/stropmodule.c
@@ -228,6 +228,7 @@ if (item && !PyString_Check(item)) { PyErr_SetString(PyExc_TypeError, "first argument must be sequence of strings"); + Py_DECREF(item); return NULL; } return item;