Don't leak resource on error in OCSP_url_svcloc_new
authorMatt Caswell <matt@openssl.org>
Wed, 27 Apr 2016 12:40:52 +0000 (13:40 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 28 Apr 2016 12:13:09 +0000 (13:13 +0100)
commita4e584a610e4a73f1fd7edef7e5b301c0be18bbf
treee6493c5ccc8fcd378f6b38be2929ecc5ffda3776
parentf08e8034505ae69d6b986f20a63b705d1f012744
Don't leak resource on error in OCSP_url_svcloc_new

On error we could leak a ACCESS_DESCRIPTION and an ASN1_IA5STRING. Both
should be freed in the error path.

Reviewed-by: Richard Levitte <levitte@openssl.org>
crypto/ocsp/ocsp_ext.c