Fare9 / Shuriken-Analyzer

Repository for a library focused on binary analysis (mainly for Java related bytecodes)
BSD 3-Clause "New" or "Revised" License
36 stars 3 forks source link

Improve the memory management from Core API #44

Open Fare9 opened 2 months ago

Fare9 commented 2 months ago

Right now the Core API use different memory APIs including new and malloc, this was mostly used for testing purposes and see if it was possible to write a Core API in C. Now that the API is more stable, this memory can be modified an use smart pointers, the smart pointers can be kept in the opaque pointer, and once the opaque pointer is destroyed, all these structures would be destroyed automatically if we keep them in the opaque structure and this keeps the ownership.