diff options
-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 3921d34..240a056 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; |