From: Mark Wooding Date: Sun, 24 Nov 2019 23:08:14 +0000 (+0000) Subject: algorithms.c: Use `RETURN_ME' rather than doing the job by hand. X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/commitdiff_plain/ae6ce3ffebbe033d7fee4a3fc5f3518397305d02?ds=inline algorithms.c: Use `RETURN_ME' rather than doing the job by hand. --- diff --git a/algorithms.c b/algorithms.c index dcdcff6..48bd480 100644 --- a/algorithms.c +++ b/algorithms.c @@ -3626,8 +3626,7 @@ static PyObject *gprp_pynew(PyTypeObject *ty, PyObject *arg, PyObject *kw) me = (PyObject *)ty->tp_alloc(ty, 0); GPRP_PRP(me) = prp; prp->init(GPRP_CTX(me), k.p, k.sz); - Py_INCREF(me); - return (me); + RETURN_ME; end: return (0); }