The branch master has been updated
       via  69ac182d15e964801a237f826d71fd4d77b4710f (commit)
      from  0d1e003f8493504945dabff4384cfafba49f5369 (commit)


- Log -----------------------------------------------------------------
commit 69ac182d15e964801a237f826d71fd4d77b4710f
Author: Insu Yun <[email protected]>
Date:   Fri Feb 5 17:37:49 2016 -0500

    GH634: fix potential memory leak
    
    Signed-off-by: Rich Salz <[email protected]>
    Reviewed-by: Kurt Roeckx <[email protected]>

-----------------------------------------------------------------------

Summary of changes:
 apps/req.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/apps/req.c b/apps/req.c
index eddbc77..d6d46a9 100644
--- a/apps/req.c
+++ b/apps/req.c
@@ -1451,6 +1451,7 @@ static EVP_PKEY_CTX *set_keygen_ctx(const char *gstr,
     if (EVP_PKEY_keygen_init(gctx) <= 0) {
         BIO_puts(bio_err, "Error initializing keygen context\n");
         ERR_print_errors(bio_err);
+        EVP_PKEY_CTX_free(gctx);
         return NULL;
     }
 #ifndef OPENSSL_NO_RSA
_____
openssl-commits mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-commits

Reply via email to