X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/blobdiff_plain/6c7c6b16caa5c96cb797b269c657863203b1894d..d2d1550411f009fc0d816c354290e2c041ec6d6b:/algorithms.c 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); }