projects
/
u
/
mdw
/
putty
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
25d3a4a
)
Fix memory leaks in the new error return from modinv.
author
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 4 Aug 2013 22:33:50 +0000
(22:33 +0000)
committer
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 4 Aug 2013 22:33:50 +0000
(22:33 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@9992
cda61777
-01e9-0310-a592-
d414129be87e
sshbn.c
patch
|
blob
|
blame
|
history
diff --git
a/sshbn.c
b/sshbn.c
index
a206783
..
ec7d3a6
100644
(file)
--- a/
sshbn.c
+++ b/
sshbn.c
@@
-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;
}