s_read_wincsp leaks handle
Closed this issue · 2 comments
mabuchner commented
The s_read_wincsp
function calls CryptAcquireContextW
libtommath/s_mp_rand_platform.c
Line 38 in 2cec6ad
but the corresponding CryptReleaseContext
function is never called.
Hence, the handle is never released and leaks.
mabuchner commented
tommatch v1.1.0 was still calling CryptReleaseContext
at application exit
https://github.com/libtom/libtommath/blob/v1.1.0/bn_mp_rand.c#L57