artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb7532a
)
Free cert, key and ocsp_staple on exit of do_keypair_test().
author
tb
<tb@openbsd.org>
Sat, 4 Dec 2021 09:04:36 +0000
(09:04 +0000)
committer
tb
<tb@openbsd.org>
Sat, 4 Dec 2021 09:04:36 +0000
(09:04 +0000)
Reported by Ilya Shipitsine, discussed with jsing
regress/lib/libtls/keypair/keypairtest.c
patch
|
blob
|
history
diff --git
a/regress/lib/libtls/keypair/keypairtest.c
b/regress/lib/libtls/keypair/keypairtest.c
index
732464a
..
0aa1877
100644
(file)
--- a/
regress/lib/libtls/keypair/keypairtest.c
+++ b/
regress/lib/libtls/keypair/keypairtest.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: keypairtest.c,v 1.
4 2018/04/07 16:42:17 jsing
Exp $ */
+/* $OpenBSD: keypairtest.c,v 1.
5 2021/12/04 09:04:36 tb
Exp $ */
/*
* Copyright (c) 2018 Joel Sing <jsing@openbsd.org>
*
@@
-186,6
+186,9
@@
do_keypair_tests(void)
done:
X509_free(x509_cert);
free(hash);
+ free((uint8_t *)cert);
+ free((uint8_t *)key);
+ free((uint8_t *)ocsp_staple);
return (failed);
}