projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae376e5
)
remove code which does nothing but cause refleaks
author
Benjamin Peterson
<benjamin@python.org>
Mon, 3 Feb 2014 14:35:08 +0000
(09:35 -0500)
committer
Benjamin Peterson
<benjamin@python.org>
Mon, 3 Feb 2014 14:35:08 +0000
(09:35 -0500)
Modules/_opcode.c
patch
|
blob
|
history
diff --git
a/Modules/_opcode.c
b/Modules/_opcode.c
index 30eeeef7441e0e6f0f6381c810caf6b95104a878..712e6eb54b4626e6ee3fdd5a07c9b7a82b2581be 100644
(file)
--- a/
Modules/_opcode.c
+++ b/
Modules/_opcode.c
@@
-55,15
+55,11
@@
_opcode_stack_effect_impl(PyModuleDef *module, int opcode, PyObject *oparg)
int effect;
int oparg_int = 0;
if (HAS_ARG(opcode)) {
- PyObject *i_object;
if (oparg == Py_None) {
PyErr_SetString(PyExc_ValueError,
"stack_effect: opcode requires oparg but oparg was not specified");
return -1;
}
- i_object = PyNumber_Index(oparg);
- if (!i_object)
- return -1;
oparg_int = (int)PyLong_AsLong(oparg);
if ((oparg_int == -1) && PyErr_Occurred())
return -1;