X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/blobdiff_plain/b2e2c7eef3e99fc9ad23e1b69020ff0fc722ba61..ad70a954d0c71d5506143d57c63e58aa09d6a13f:/catacomb.c diff --git a/catacomb.c b/catacomb.c index b3d7e52..d994347 100644 --- a/catacomb.c +++ b/catacomb.c @@ -44,7 +44,6 @@ PyObject *mexp_common(PyObject *me, PyObject *arg, if (PyTuple_GET_SIZE(arg) == 1) arg = PyTuple_GET_ITEM(arg, 0); - Py_INCREF(arg); if (!PySequence_Check(arg)) TYERR("not a sequence"); n = PySequence_Size(arg); if (n < 0) goto end; if (!n) { z = id(me); goto end; } @@ -93,7 +92,6 @@ end: drop(vv); xfree(v); } - Py_DECREF(arg); return (z); }