chiark
/
gitweb
/
~mdw
/
catacomb-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pgen.c (pgev_python): Delete pointless refcount manipulation.
[catacomb-python]
/
pgen.c
diff --git
a/pgen.c
b/pgen.c
index afeeb3329762bf3d4815dea3b5b06d42d1ede249..32955885c1816b8db57db129a1cfc676cd7ea307 100644
(file)
--- 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);
}