]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add a missing DECREF in an error exit. Submitted by Jonathan Giddy.
authorGuido van Rossum <guido@python.org>
Mon, 19 Oct 1998 13:38:36 +0000 (13:38 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 19 Oct 1998 13:38:36 +0000 (13:38 +0000)
Modules/stropmodule.c

index 3921d3460eb26147e6174bf705edcba91aec2df8..240a056f6f345b7741eece3684727118a273ae85 100644 (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;