Permalink
Browse files

Fix a memory leak in key generation.

git-svn-id: svn://svn.tartarus.org/sgt/putty@6587 cda61777-01e9-0310-a592-d414129be87e
  • Loading branch information...
1 parent 840ee0e commit 32a942235976b7f30939246fffde5bb9b84f665b jacob committed Feb 27, 2006
Showing with 1 addition and 0 deletions.
  1. +1 −0 sshprime.c
View
@@ -1382,6 +1382,7 @@ Bignum primegen(int bits, int modulus, int residue, Bignum factor,
* It didn't. Therefore, w is a witness for the
* compositeness of p.
*/
+ freebn(wqp);
freebn(p);
freebn(pm1);
freebn(q);

0 comments on commit 32a9422

Please sign in to comment.