Skip to content

Commit 4ccc377

Browse files
Reapply "remove unnecessary mem leak handling in unary and wrap method 1"
This reverts commit e839f46.
1 parent 1617961 commit 4ccc377

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

Objects/weakrefobject.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,6 @@ _proxy_unwrap(PyObject **op, int *did_incref)
575575
#define WRAP_UNARY(method, generic) \
576576
static PyObject * \
577577
method(PyObject *proxy) { \
578-
int proxy_incref = 0; \
579578
UNWRAP(proxy); \
580579
PyObject* res = generic(proxy); \
581580
Py_DECREF(proxy); \
@@ -629,7 +628,6 @@ _proxy_unwrap(PyObject **op, int *did_incref)
629628
#define WRAP_METHOD(method, SPECIAL) \
630629
static PyObject * \
631630
method(PyObject *proxy, PyObject *Py_UNUSED(ignored)) { \
632-
int proxy_incref = 0; \
633631
UNWRAP(proxy); \
634632
PyObject* res = PyObject_CallMethodNoArgs(proxy, &_Py_ID(SPECIAL)); \
635633
Py_DECREF(proxy); \

0 commit comments

Comments
 (0)