Closed LukasKorba closed 8 months ago
There are 2 leaks in total in the whole SDK, both 1 byte of memory.
ZcashRustBackend and method listTransparentReceivers(account: Int32)
ZcashRustBackend and method putSaplingSubtreeRoots
Leak number 1 is probably a false positive.
The allocation is done in the rust
let encodedKeysPtr = zcashlc_list_transparent_receivers(
dbData.0,
dbData.1,
account,
networkType.networkId
)
and deallocation is handled in
defer { zcashlc_free_keys(encodedKeysPtr) }
Leak number 2 deallocated in the code and after instruments check, this one no longer appears.
Seems like this can be closed.
Comment in review
If I'm not mistaken rootsPtr is leaked because it's not deallocated.
but as I can see there are other allocations that seem to me not deallocated properly.