Skip to content

Commit

Permalink
Fix #159 by @Ret2c7 - broken python-r2pipe-native on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Jan 11, 2024
1 parent e96e9bd commit 617ff39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/r2pipe/native.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand Down

0 comments on commit 617ff39

Please sign in to comment.