Add a missing DECREF in an error exit. Submitted by Jonathan Giddy.

This commit is contained in:
Guido van Rossum 1998-10-19 13:38:36 +00:00
parent 18fa7d2800
commit bf338300ff
1 changed files with 1 additions and 0 deletions

View File

@ -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;