diff --git a/python/r2pipe/native.py b/python/r2pipe/native.py index 8476d90..6630f45 100644 --- a/python/r2pipe/native.py +++ b/python/r2pipe/native.py @@ -125,6 +125,8 @@ def __init__(self): self._r_core_free = register("r_core_free", "c_void_p", "c_void_p") def __del__(self): self._r_core_free[1](self._o) + def free(self): + self._r_core_free[1](self._o) def cmd_str(self, cmd): return self._r_core_cmd_str[1](self._o, cmd) diff --git a/python/test/test_integration.py b/python/test/test_integration.py index 7c88a76..0873d28 100644 --- a/python/test/test_integration.py +++ b/python/test/test_integration.py @@ -92,5 +92,5 @@ def test_r2cmd_no_nullbyte_bug(self): import r2pipe r = r2pipe.open('/bin/ls') - result = r.cmd('prx @ rsp') + result = r.cmd('prx @r:SP') self.assertNotEqual(result, '')