artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9f29c7
)
Do not bother NULLing pointers in memory that is freed immediately after.
author
jsing
<jsing@openbsd.org>
Mon, 5 Feb 2018 01:47:03 +0000
(
01:47
+0000)
committer
jsing
<jsing@openbsd.org>
Mon, 5 Feb 2018 01:47:03 +0000
(
01:47
+0000)
lib/libtls/tls_ocsp.c
patch
|
blob
|
history
diff --git
a/lib/libtls/tls_ocsp.c
b/lib/libtls/tls_ocsp.c
index
307ae84
..
17afb8e
100644
(file)
--- 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);
}