Don't leak memory on X509_TRUST_add() error path
authorMatt Caswell <matt@openssl.org>
Thu, 28 Apr 2016 12:46:31 +0000 (13:46 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 1 Jun 2016 17:00:53 +0000 (18:00 +0100)
commit423281001ce96d731361152f8f6c52a1fefc2660
treeb86ec594deafc28ccbc47affb3279ce53e54e7ed
parent69e2bd32efb756b59cea75af22d869679c448e91
Don't leak memory on X509_TRUST_add() error path

The X509_TRUST_add() function was leaking an X509_TRUST object on error.

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