From: jsing Date: Mon, 5 Feb 2018 01:47:03 +0000 (+0000) Subject: Do not bother NULLing pointers in memory that is freed immediately after. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a38d3b9a61c09089adc50e02d72ccf98304d8d8a;p=openbsd Do not bother NULLing pointers in memory that is freed immediately after. --- 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); }