Don't leak memory on error in b2i_rsa
authorMatt Caswell <matt@openssl.org>
Wed, 27 Apr 2016 12:52:37 +0000 (13:52 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 28 Apr 2016 12:13:09 +0000 (13:13 +0100)
commit204cf9406e8f8cd1e3748e69a19e35bf0c224443
treed1d3fa1a51a161ec4d10faee59f47ef67be9dea1
parenta4e584a610e4a73f1fd7edef7e5b301c0be18bbf
Don't leak memory on error in b2i_rsa

The b2i_rsa() function uses a number of temporary local variables which
get leaked on an error path.

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