From 20d2aaf22e54d07ead144c5e79fdaf6903cdbf2d Mon Sep 17 00:00:00 2001 From: Hubert Kario Date: Fri, 29 Sep 2017 13:27:32 +0200 Subject: [PATCH] doc: BN_free() is NULL-safe document that parameter to BN_free can be NULL backport from master Reviewed-by: Richard Levitte Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/4439) --- doc/crypto/BN_new.pod | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/crypto/BN_new.pod b/doc/crypto/BN_new.pod index ab7a105e3a..413a1ea842 100644 --- a/doc/crypto/BN_new.pod +++ b/doc/crypto/BN_new.pod @@ -30,6 +30,7 @@ to the value 0. BN_free() frees the components of the B, and if it was created by BN_new(), also the structure itself. BN_clear_free() additionally overwrites the data before the memory is returned to the system. +If B is NULL, nothing is done. =head1 RETURN VALUES -- 2.25.1