PR: 2001
authorDr. Stephen Henson <steve@openssl.org>
Wed, 5 Aug 2009 14:55:20 +0000 (14:55 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 5 Aug 2009 14:55:20 +0000 (14:55 +0000)
Submitted by: Tomas Mraz <tmraz@redhat.com>
Approved by: steve@openssl.org

Add patch: http://cvs.openssl.org/chngview?cn=14635 which never made it to
1.0.0, HEAD.

crypto/rsa/rsa_lib.c

index 6b1b029d7e29fb9772a5b4fef11b7bd760223feb..e334e506fb7bc5aa50cc4a8c9403bb4870713d18 100644 (file)
@@ -422,6 +422,8 @@ err:
        BN_CTX_end(ctx);
        if (in_ctx == NULL)
                BN_CTX_free(ctx);
+       if(rsa->e == NULL)
+               BN_free(e);
 
        return ret;
 }