Fix a memory leak in key generation.
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Mon, 27 Feb 2006 23:55:07 +0000 (23:55 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Mon, 27 Feb 2006 23:55:07 +0000 (23:55 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@6587 cda61777-01e9-0310-a592-d414129be87e

sshprime.c

index 4d79aac..070eb98 100644 (file)
@@ -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);