From b34ddd03f71c8637a80a264a3ea757b8295d482b Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Thu, 1 Aug 2024 17:03:39 -0400 Subject: Pass length to free flag conditions list callback and remove libc from rust api Allows language bindings like rust to free conditions lists sanely --- python/architecture.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/architecture.py b/python/architecture.py index abcfb015..01ea3166 100644 --- a/python/architecture.py +++ b/python/architecture.py @@ -914,7 +914,7 @@ class Architecture(metaclass=_ArchitectureMetaClass): count[0] = 0 return None - def _free_flag_conditions_for_semantic_flag_group(self, ctxt, conditions): + def _free_flag_conditions_for_semantic_flag_group(self, ctxt, conditions, count): try: buf = ctypes.cast(conditions, ctypes.c_void_p) if buf.value not in self._pending_condition_lists: -- cgit v1.3.1