Skip to content

Commit

Permalink
Missing OPENSSL_free on error path.
Browse files Browse the repository at this point in the history
Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
  • Loading branch information
Eric Dequin authored and Rich Salz committed Feb 12, 2015
1 parent 7b4a4b7 commit 1d2932d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ssl/t1_enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d2932d

Please sign in to comment.