ABY
ABY copied to clipboard
Memory Management
Hi, I am new to ABY, but I found many "new" in ABY, such as in share = PUTXXGate(share)
.
So I am curious that does the ABY do the memory management for us ? Or we should pay attention about the memory leakage ?
I have been wondering the same. Looking at the code of some of the PutXXGate
implementations returning shares, which just allocate a boolshare
or arithshare
, fill its wires and return it, it seems to me that ABY does not keep track of the created share object, meaning that we would have to take care of that ourselves..
It would be nice if that could be confirmed or denied by someone officially engaged with the project though :)
ABY is currently not properly deallocating shares.
This was also mentioned in #15 where also a possible mitigation is presented.