Commit bf338300 authored by Guido van Rossum's avatar Guido van Rossum

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

parent 18fa7d28
...@@ -228,6 +228,7 @@ strop_joinfields(self, args) ...@@ -228,6 +228,7 @@ strop_joinfields(self, args)
if (item && !PyString_Check(item)) { if (item && !PyString_Check(item)) {
PyErr_SetString(PyExc_TypeError, PyErr_SetString(PyExc_TypeError,
"first argument must be sequence of strings"); "first argument must be sequence of strings");
Py_DECREF(item);
return NULL; return NULL;
} }
return item; return item;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment