mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-05-18 18:35:35 -05:00
Fix memory leaks in the new error return from modinv.
[originally from svn r9992]
This commit is contained in:
parent
20aabc3059
commit
97db2b6646
4
sshbn.c
4
sshbn.c
@ -1642,6 +1642,10 @@ Bignum modinv(Bignum number, Bignum modulus)
|
|||||||
* Found a common factor between the inputs, so we cannot
|
* Found a common factor between the inputs, so we cannot
|
||||||
* return a modular inverse at all.
|
* return a modular inverse at all.
|
||||||
*/
|
*/
|
||||||
|
freebn(b);
|
||||||
|
freebn(a);
|
||||||
|
freebn(xp);
|
||||||
|
freebn(x);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user