_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:
Ole André Vadla Ravnås committed 2022-05-03 20:21:28 +02:00
1 parent 38d8032d58
commit f85ffbf3d0
1 file changed
-2
-2
View File
@@ -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;