From a38d3b9a61c09089adc50e02d72ccf98304d8d8a Mon Sep 17 00:00:00 2001 From: jsing Date: Mon, 5 Feb 2018 01:47:03 +0000 Subject: [PATCH] Do not bother NULLing pointers in memory that is freed immediately after. --- lib/libtls/tls_ocsp.c | 4 +--- 1 file changed, 1 insertion(+), 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); } -- 2.20.1