summaryrefslogtreecommitdiffstats
path: root/Modules/stropmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/stropmodule.c')
-rw-r--r--Modules/stropmodule.c1
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;