X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb-python/blobdiff_plain/8854bd74bdb76307df1d695b6820ab4e25b7088f..a42955d587b9ed267aa9a22d5b68f89b4d88beb5:/pgen.c?ds=inline diff --git a/pgen.c b/pgen.c index afeeb33..3295588 100644 --- a/pgen.c +++ b/pgen.c @@ -534,7 +534,6 @@ static int pgev_python(int rq, pgen_event *ev, void *p) "pg_abort", "pg_done", "pg_begin", "pg_try", "pg_fail", "pg_pass" }; - Py_INCREF(py); rq++; if (rq > N(meth)) SYSERR("event code out of range"); pyev = pgevent_pywrap(ev); @@ -554,7 +553,6 @@ end: Py_DECREF(pyev); } Py_XDECREF(rc); - Py_DECREF(py); return (st); }