From 121c16592476754800b00a3b51595f4799944d04 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Thu, 1 Aug 2024 14:45:39 -0400 Subject: Pass length to free register list callback Allows language bindings like rust to free register lists sanely --- python/architecture.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/architecture.py') diff --git a/python/architecture.py b/python/architecture.py index ec65b92e..abcfb015 100644 --- a/python/architecture.py +++ b/python/architecture.py @@ -999,7 +999,7 @@ class Architecture(metaclass=_ArchitectureMetaClass): log_error(traceback.format_exc()) return 0 - def _free_register_list(self, ctxt, regs): + def _free_register_list(self, ctxt, regs, count): try: buf = ctypes.cast(regs, ctypes.c_void_p) if buf.value not in self._pending_reg_lists: -- cgit v1.3.1