From ca3a82c3b364e1e584546f0f3bbb938b0b472580 Mon Sep 17 00:00:00 2001 From: Rich Salz Date: Wed, 25 Mar 2015 11:31:18 -0400 Subject: free NULL cleanup This commit handles BIO_ACCEPT_free BIO_CB_FREE BIO_CONNECT_free BIO_free BIO_free_all BIO_vfree Reviewed-by: Matt Caswell --- crypto/bio/bio_lib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'crypto/bio/bio_lib.c') diff --git a/crypto/bio/bio_lib.c b/crypto/bio/bio_lib.c index 11e0142..a5d8680 100644 --- a/crypto/bio/bio_lib.c +++ b/crypto/bio/bio_lib.c @@ -549,8 +549,7 @@ BIO *BIO_dup_chain(BIO *in) } return (ret); err: - if (ret != NULL) - BIO_free(ret); + BIO_free(ret); return (NULL); } -- cgit v1.1