Vector35 / binaryninja-api

Public API, examples, documentation and issues for Binary Ninja
https://binary.ninja/
MIT License
927 stars 209 forks source link

BinaryView leak on Rebase while in LinearView #4621

Closed plafosse closed 1 year ago

plafosse commented 1 year ago
  1. Open a binary with debugger disabled
  2. Ensure you have LinearView visible
  3. Rebase
  4. Close
  5. Observe leak with get_memory_usage_info()
xusheng6 commented 1 year ago

We are leaking exactly one ref for the old view

xusheng6 commented 1 year ago

This is fixed by https://github.com/Vector35/binaryninja/commit/8b9f16c2156ab6146e2b5fd45320987d3255ec21