Skip to content

Conversation

ReneLergner
Copy link
Contributor

Hi 9ee1. Thanks for creating this project. I'm using it in a new project, which I will push to Github soon. While using your project I found 2 memory-leaks. I fixed them in my fork. Feel free to pull them to your branch.

The first memory-leak happens in CapstoneDisassembler.Disassemble() because the ownership of an disposable object is passed to this function. The object should then be disposed in this function.

The second memory-leak happens in CapstoneDisassembler.MoveNext(). It gets unmanaged data, which needs to be freed.

@9ee1 9ee1 merged commit 016e4ab into 9ee1:master Dec 21, 2018
@9ee1
Copy link
Owner

9ee1 commented Dec 21, 2018

Hi @ReneLergner. Thanks for your contribution. I have merged this on master.

@ReneLergner
Copy link
Contributor Author

Thanks. This is the tool where I use Capstone.NET: https://github.com/ReneLergner/Patcher. More info here: https://wpinternals.net/index.php/135-new-versions-of-wpinternals-and-autopatcher

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants