We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6199102 commit e839f46Copy full SHA for e839f46
Objects/weakrefobject.c
@@ -575,6 +575,7 @@ _proxy_unwrap(PyObject **op, int *did_incref)
575
#define WRAP_UNARY(method, generic) \
576
static PyObject * \
577
method(PyObject *proxy) { \
578
+ int proxy_incref = 0; \
579
UNWRAP(proxy); \
580
PyObject* res = generic(proxy); \
581
Py_DECREF(proxy); \
@@ -628,6 +629,7 @@ _proxy_unwrap(PyObject **op, int *did_incref)
628
629
#define WRAP_METHOD(method, SPECIAL) \
630
631
method(PyObject *proxy, PyObject *Py_UNUSED(ignored)) { \
632
633
634
PyObject* res = PyObject_CallMethodNoArgs(proxy, &_Py_ID(SPECIAL)); \
635
0 commit comments