mirror of
https://github.com/frida/frida-python
synced 2026-06-08 14:16:17 +00:00
_frida: Fix refcounting in get_max_argument_count()
PyTuple_GetItem() returns a borrowed reference. Kudos to @rev1si0n for finding this embarrassing bug.
This commit is contained in:
@@ -5567,8 +5567,6 @@ PyFrida_get_max_argument_count (PyObject * callable)
|
||||
Py_DECREF (is_method);
|
||||
|
||||
beach:
|
||||
Py_XDECREF (args);
|
||||
Py_XDECREF (varargs);
|
||||
Py_XDECREF (spec);
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user