From: Guido van Rossum Date: Mon, 19 Oct 1998 13:38:36 +0000 (+0000) Subject: Add a missing DECREF in an error exit. Submitted by Jonathan Giddy. X-Git-Tag: v1.5.2b1~311 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bf338300ff50bef79b774f0ab956db7cea260c80;p=thirdparty%2FPython%2Fcpython.git Add a missing DECREF in an error exit. Submitted by Jonathan Giddy. --- diff --git a/Modules/stropmodule.c b/Modules/stropmodule.c index 3921d3460eb2..240a056f6f34 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;