X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/blobdiff_plain/d472b9a1b7acba2691f3a3c573dc05a5a9570098..85b62bfa0154f30a9359831663f45e8f6bbe3fe6:/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); }