diff options
author | Guido van Rossum <guido@python.org> | 1998-10-19 13:38:36 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-10-19 13:38:36 +0000 |
commit | 6aed1918c4fd3cdb7146d91038e235980cc795bb (patch) | |
tree | 43827ab6bafc5cac770c765568471d28de339311 /Modules/stropmodule.c | |
parent | f9b4fd0bde79c0663b384125c2b3b4bfd301c807 (diff) | |
download | cpython-6aed1918c4fd3cdb7146d91038e235980cc795bb.tar.gz |
Add a missing DECREF in an error exit. Submitted by Jonathan Giddy.
Diffstat (limited to 'Modules/stropmodule.c')
-rw-r--r-- | Modules/stropmodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/stropmodule.c b/Modules/stropmodule.c index 3921d3460e..240a056f6f 100644 --- a/Modules/stropmodule.c +++ b/Modules/stropmodule.c @@ -228,6 +228,7 @@ strop_joinfields(self, args) if (item && !PyString_Check(item)) { PyErr_SetString(PyExc_TypeError, "first argument must be sequence of strings"); + Py_DECREF(item); return NULL; } return item; |