From eed7b47cd31e11f242f5c2e2d21582f1b4df0077 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Mon, 5 Feb 2018 01:47:03 +0000 Subject: Do not bother NULLing pointers in memory that is freed immediately after. --- src/lib/libtls/tls_ocsp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/lib/libtls/tls_ocsp.c b/src/lib/libtls/tls_ocsp.c index 307ae842b8..17afb8e818 100644 --- a/src/lib/libtls/tls_ocsp.c +++ b/src/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); } -- cgit v1.2.3-55-g6feb