summaryrefslogtreecommitdiff
path: root/python/architecture.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2021-06-23 10:57:05 -0400
committerPeter LaFosse <peter@vector35.com>2021-09-05 10:08:09 -0400
commit3be2c0f9d4574f84869e5dcc61a91b4356391207 (patch)
tree5ae2e1bea06b9d47f7b07a89414ac79006d4643d /python/architecture.py
parentc04f530ffe11ec62d3e23b0cbb445200ecbed026 (diff)
add a core.free_string helper
Diffstat (limited to 'python/architecture.py')
-rw-r--r--python/architecture.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/architecture.py b/python/architecture.py
index 51b1ae00..7dd8ff91 100644
--- a/python/architecture.py
+++ b/python/architecture.py
@@ -2570,7 +2570,7 @@ class CoreArchitecture(Architecture):
errors = ctypes.c_char_p()
if not core.BNAssemble(self.handle, code, addr, result.handle, errors):
error_str = errors.value
- core.BNFreeString(ctypes.cast(errors, ctypes.POINTER(ctypes.c_byte)))
+ core.free_string(errors)
raise ValueError("Could not assemble: %s" % error_str)
return bytes(result)