Allow NULL for some _free routines.
authorRich Salz <rsalz@openssl.org>
Tue, 27 Mar 2018 20:25:08 +0000 (16:25 -0400)
committerRich Salz <rsalz@openssl.org>
Tue, 27 Mar 2018 20:25:08 +0000 (16:25 -0400)
commite6e9170d6e28038768895e1af18e3aad8093bf4b
tree62f594f0968ff8d6c27795377a102e4aab373b00
parent98c03302fb7b855647aa14022f61f5fb272e514a
Allow NULL for some _free routines.

Based on the description in https://github.com/openssl/openssl/pull/5757,
this re-implements the "allow NULL to be passed" behavior of a number of
xxx_free routines.  I also fixed up some egregious formatting errors
that were nearby.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5761)
15 files changed:
crypto/bio/bss_acpt.c
crypto/bio/bss_conn.c
crypto/bn/bn_blind.c
crypto/bn/bn_ctx.c
crypto/bn/bn_mont.c
crypto/bn/bn_recp.c
crypto/buffer/buffer.c
crypto/comp/comp_lib.c
crypto/err/err.c
crypto/txt_db/txt_db.c
crypto/x509/x509_lu.c
ssl/s3_lib.c
ssl/ssl_cert.c
ssl/ssl_lib.c
ssl/ssl_sess.c