Skip to content

Commit 4ffecee

Browse files
timfelfangerer
authored andcommitted
[GR-23628] remove incorrect decref
1 parent b23baa0 commit 4ffecee

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

graalpython/com.oracle.graal.python.benchmarks/python/micro/c-call-method.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
static PyObject* nc_method_varargs(PyObject* self, PyObject* args, PyObject* kwds) {
4848
char *kwdnames[] = { "a", "b", "c", NULL};
4949
PyObject* longobj = NULL;
50-
PyObject* result = NULL;
5150
int ival = 0;
5251
long lval = 0;
5352
long lval2 = 0;
@@ -56,7 +55,6 @@
5655
return NULL;
5756
}
5857
lval2 = PyLong_AsLong(longobj);
59-
Py_DECREF(longobj);
6058
return PyLong_FromLong(lval2 + ival + lval);
6159
}
6260

0 commit comments

Comments
 (0)