crabstone icon indicating copy to clipboard operation
crabstone copied to clipboard

Memory leak on Crabstone::Instruction

Open ghost opened this issue 8 years ago • 1 comments

The Instruction class is not properly released due to a typo in the release class method. While no warnings or errors will be raised when the finalizer is called automatically, attempting to manually free the structure will tell you that the read_ptr method doesn't exist and suggest read_pointer.

Please refer to this commit for the fix: https://github.com/kdiv/crabstone/commit/a7bb211a59748e46dde7f4401d83c33ebe19a563

ghost avatar Aug 31 '17 23:08 ghost

@kdiv This bug is fixed in my fork, where is planned to support Capstone 4.0

david942j avatar Jan 30 '19 06:01 david942j