1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-05-18 10:15:36 -05:00

Fix memory leaks in the new error return from modinv.

[originally from svn r9992]
This commit is contained in:
Simon Tatham 2013-08-04 22:33:50 +00:00
parent 20aabc3059
commit 97db2b6646

View File

@ -1642,6 +1642,10 @@ Bignum modinv(Bignum number, Bignum modulus)
* Found a common factor between the inputs, so we cannot
* return a modular inverse at all.
*/
freebn(b);
freebn(a);
freebn(xp);
freebn(x);
return NULL;
}