diff options
author | Rich Salz <rsalz@akamai.com> | 2015-03-24 15:17:37 +0100 |
---|---|---|
committer | Rich Salz <rsalz@akamai.com> | 2015-03-25 04:17:16 +0100 |
commit | d64070838ebba86f00fb3755df5d3e65106e1628 (patch) | |
tree | def90b3063d9ebe0f53920604d02b9786216e327 /doc/crypto | |
parent | update ordinals (diff) | |
download | openssl-d64070838ebba86f00fb3755df5d3e65106e1628.tar.xz openssl-d64070838ebba86f00fb3755df5d3e65106e1628.zip |
free NULL cleanup
Start ensuring all OpenSSL "free" routines allow NULL, and remove
any if check before calling them.
This gets DH_free, DSA_free, RSA_free
Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'doc/crypto')
-rw-r--r-- | doc/crypto/DH_new.pod | 1 | ||||
-rw-r--r-- | doc/crypto/DSA_new.pod | 1 | ||||
-rw-r--r-- | doc/crypto/RSA_new.pod | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/doc/crypto/DH_new.pod b/doc/crypto/DH_new.pod index 60c930093e..6245e4adaf 100644 --- a/doc/crypto/DH_new.pod +++ b/doc/crypto/DH_new.pod @@ -18,6 +18,7 @@ DH_new() allocates and initializes a B<DH> structure. DH_free() frees the B<DH> structure and its components. The values are erased before the memory is returned to the system. +If B<dh> is NULL nothing is done. =head1 RETURN VALUES diff --git a/doc/crypto/DSA_new.pod b/doc/crypto/DSA_new.pod index 48e9b82a09..3a6d582465 100644 --- a/doc/crypto/DSA_new.pod +++ b/doc/crypto/DSA_new.pod @@ -19,6 +19,7 @@ calling DSA_new_method(NULL). DSA_free() frees the B<DSA> structure and its components. The values are erased before the memory is returned to the system. +If B<dsa> is NULL nothing is done. =head1 RETURN VALUES diff --git a/doc/crypto/RSA_new.pod b/doc/crypto/RSA_new.pod index 3d15b92824..70901a556b 100644 --- a/doc/crypto/RSA_new.pod +++ b/doc/crypto/RSA_new.pod @@ -19,6 +19,7 @@ calling RSA_new_method(NULL). RSA_free() frees the B<RSA> structure and its components. The key is erased before the memory is returned to the system. +If B<rsa> is NULL nothing is done. =head1 RETURN VALUES |