]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Fix a memory leak in key generation.
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Mon, 27 Feb 2006 23:55:07 +0000 (23:55 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Mon, 27 Feb 2006 23:55:07 +0000 (23:55 +0000)
[originally from svn r6587]

sshprime.c

index 4d79aacd6e3ad677926e18b898dc30a55e9dc064..070eb98aa5ff7bd51f29be1b54169270bf2eb9a5 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);