Do not bother NULLing pointers in memory that is freed immediately after.
authorjsing <jsing@openbsd.org>
Mon, 5 Feb 2018 01:47:03 +0000 (01:47 +0000)
committerjsing <jsing@openbsd.org>
Mon, 5 Feb 2018 01:47:03 +0000 (01:47 +0000)
lib/libtls/tls_ocsp.c

index 307ae84..17afb8e 100644 (file)
@@ -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);
 }