diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2018-02-05 01:47:04 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2018-02-05 01:47:04 +0000 |
commit | 47b04113c2723166cc06fb8dc438d8aa12c37227 (patch) | |
tree | 0726ca4841d0b8cac144c4ecb30781a168844e26 | |
parent | d2493abc67662f179a1d982fff54795645a30416 (diff) |
Do not bother NULLing pointers in memory that is freed immediately after.
-rw-r--r-- | lib/libtls/tls_ocsp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libtls/tls_ocsp.c b/lib/libtls/tls_ocsp.c index 307ae842b8a..17afb8e818b 100644 --- a/lib/libtls/tls_ocsp.c +++ b/lib/libtls/tls_ocsp.c @@ -47,11 +47,9 @@ tls_ocsp_free(struct tls_ocsp *ocsp) return; X509_free(ocsp->main_cert); - ocsp->main_cert = NULL; free(ocsp->ocsp_result); - ocsp->ocsp_result = NULL; free(ocsp->ocsp_url); - ocsp->ocsp_url = NULL; + free(ocsp); } |