Add a missing DECREF in an error exit. Submitted by Jonathan Giddy.
This commit is contained in:
parent
18fa7d2800
commit
bf338300ff
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue