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 9bf25c6 commit be3f7d0Copy full SHA for be3f7d0
1 file changed
Objects/weakrefobject.c
@@ -560,6 +560,7 @@ _proxy_unwrap(PyObject **op, int *did_incref)
560
#define WRAP_UNARY(method, generic) \
561
static PyObject * \
562
method(PyObject *proxy) { \
563
+ int proxy_incref = 0; \
564
UNWRAP(proxy); \
565
PyObject* res = generic(proxy); \
566
Py_DECREF(proxy); \
@@ -613,6 +614,7 @@ _proxy_unwrap(PyObject **op, int *did_incref)
613
614
#define WRAP_METHOD(method, SPECIAL) \
615
616
method(PyObject *proxy, PyObject *Py_UNUSED(ignored)) { \
617
618
619
PyObject* res = PyObject_CallMethodNoArgs(proxy, &_Py_ID(SPECIAL)); \
620
0 commit comments