mirror of
https://github.com/frida/frida-python.git
synced 2026-11-07 09:35:57 -10: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:
1 parent
38d8032d58
commit
f85ffbf3d0
1 file changed
-2
@@ -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