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:18:04 +0000 (11:18 -0400)
commit55500ea7c46c27a150a46832e1260891aaad8e52
treebf39de9a96882dedcda432923886407cdaf2adcf
parentf00a10b89734e84fe80f98ad9e2e77b557c701ae
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>
crypto/asn1/x_x509a.c
crypto/pkcs7/pk7_smime.c
crypto/x509/x509_vfy.c
test/clienthellotest.c
test/gost2814789test.c