snucrypto / HEAAN

Other
359 stars 94 forks source link

fixed memory leak #29

Closed micciancio closed 5 years ago

micciancio commented 5 years ago

Scheme keys are not de-allocated from memory when scheme variables go out of scope. Added destructor to scheme to de-allocate keys and fix memory leak. You may need to do something similar for serialized keys too, I did not look into it.

Other minor changes in this commit: