artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58c4462
)
Avoid memory leak in error path with openssl(1) smime
author
inoguchi
<inoguchi@openbsd.org>
Sun, 16 Jan 2022 07:12:28 +0000
(07:12 +0000)
committer
inoguchi
<inoguchi@openbsd.org>
Sun, 16 Jan 2022 07:12:28 +0000
(07:12 +0000)
CID 345316
ok tb@
usr.bin/openssl/smime.c
patch
|
blob
|
history
diff --git
a/usr.bin/openssl/smime.c
b/usr.bin/openssl/smime.c
index
1a82d06
..
2503177
100644
(file)
--- a/
usr.bin/openssl/smime.c
+++ b/
usr.bin/openssl/smime.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: smime.c,v 1.1
6 2022/01/11 16:06:4
8 inoguchi Exp $ */
+/* $OpenBSD: smime.c,v 1.1
7 2022/01/16 07:12:2
8 inoguchi Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project.
*/
@@
-1025,6
+1025,7
@@
smime_main(int argc, char **argv)
if (!save_certs(smime_config.signerfile, signers)) {
BIO_printf(bio_err, "Error writing signers to %s\n",
smime_config.signerfile);
+ sk_X509_free(signers);
ret = 5;
goto end;
}