diff options
author | Eric Dequin <Dequin_Eric@emc.com> | 2015-02-12 10:44:30 -0500 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2015-02-12 11:14:57 -0500 |
commit | 1d2932de4cefcc200f175863a42c311916269981 (patch) | |
tree | 7c18be48c1931bd60f16daa9e3bfa0f4ec15e89a /ssl | |
parent | 7b4a4b71b52c704580f5ef043017f06d4fb97e7e (diff) | |
download | openssl-1d2932de4cefcc200f175863a42c311916269981.tar.gz |
Missing OPENSSL_free on error path.
Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/t1_enc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c index 0c49619b5d..7333ba926b 100644 --- a/ssl/t1_enc.c +++ b/ssl/t1_enc.c @@ -649,6 +649,7 @@ int tls1_setup_key_block(SSL *s) if ((p2 = (unsigned char *)OPENSSL_malloc(num)) == NULL) { SSLerr(SSL_F_TLS1_SETUP_KEY_BLOCK, ERR_R_MALLOC_FAILURE); + OPENSSL_free(p1); goto err; } #ifdef TLS_DEBUG |