From 617ff399f30b266252c28a4cc47b7ddee2200ec1 Mon Sep 17 00:00:00 2001 From: pancake Date: Thu, 11 Jan 2024 18:33:08 +0100 Subject: [PATCH] Fix #159 by @ret2c7 - broken python-r2pipe-native on Linux --- python/r2pipe/native.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/r2pipe/native.py b/python/r2pipe/native.py index 1fce16f..8476d90 100644 --- a/python/r2pipe/native.py +++ b/python/r2pipe/native.py @@ -110,7 +110,7 @@ def register(cname, args, ret): wrapped_method = WrappedApiMethod(method, ret2, last) return wrapped_method, method -class RCore(Structure): # 1 +class RCore(Structure): def __init__(self): Structure.__init__(self) r2 = r2lib() @@ -124,9 +124,9 @@ def __init__(self): ) self._r_core_free = register("r_core_free", "c_void_p", "c_void_p") def __del__(self): - self._r_core_free(self._o) + self._r_core_free[1](self._o) def cmd_str(self, cmd): - return self._r_core_cmd_str(self._o, cmd) + return self._r_core_cmd_str[1](self._o, cmd) ### self._o = AddressHolder() # c = r2pipe.native.RCore()