GH354: Memory leak fixes
authorAlessandro Ghedini <alessandro@ghedini.me>
Fri, 28 Aug 2015 03:07:07 +0000 (23:07 -0400)
committerRich Salz <rsalz@openssl.org>
Fri, 28 Aug 2015 15:59:23 +0000 (11:59 -0400)
commitc8491de393639dbc4508306b7dbedb3872b74293
treec1dfedaddd30a2756e6c2a97f156dbe7895c4364
parent1d7df236dcb4f7c95707110753e5e77b19b9a0aa
GH354: Memory leak fixes

Fix more potential leaks in X509_verify_cert()
Fix memory leak in ClientHello test
Fix memory leak in gost2814789 test
Fix potential memory leak in PKCS7_verify()
Fix potential memory leaks in X509_add1_reject_object()
Refactor to use "goto err" in cleanup.

Signed-off-by: Rich Salz <rsalz@akamai.com>
Reviewed-by: Emilia Käsper <emilia@openssl.org>
(cherry picked from commit 55500ea7c46c27a150a46832e1260891aaad8e52)
crypto/asn1/x_x509a.c
crypto/pkcs7/pk7_smime.c
crypto/x509/x509_vfy.c
ssl/clienthellotest.c