Don't leak memory on int X509_PURPOSE_add() error path
authorMatt Caswell <matt@openssl.org>
Thu, 28 Apr 2016 12:53:52 +0000 (13:53 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 1 Jun 2016 17:00:53 +0000 (18:00 +0100)
commit137e5555bd3d1dc4486619bc524502c55682a6f4
treebac8744afa70a61c4b9880fa742c7c7d14a7742c
parent423281001ce96d731361152f8f6c52a1fefc2660
Don't leak memory on int X509_PURPOSE_add() error path

The int X509_PURPOSE_add() function was leaking an X509_PURPOSE object
on error.

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