diff --git a/src/libtriton/bindings/python/objects/pyTritonContext.cpp b/src/libtriton/bindings/python/objects/pyTritonContext.cpp index 6c54309da..015e22b3e 100644 --- a/src/libtriton/bindings/python/objects/pyTritonContext.cpp +++ b/src/libtriton/bindings/python/objects/pyTritonContext.cpp @@ -503,13 +503,10 @@ namespace triton { if (PyMethod_Check(function)) { cb_self = PyMethod_GET_SELF(function); cb = PyMethod_GET_FUNCTION(function); - - Py_INCREF(cb_self); } else { cb = function; } - Py_INCREF(cb); try { switch (static_cast(PyLong_AsUint32(mode))) {