Don't leak memory on error in i2b_PVK
authorMatt Caswell <matt@openssl.org>
Wed, 27 Apr 2016 13:00:37 +0000 (14:00 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 28 Apr 2016 12:13:09 +0000 (13:13 +0100)
commit8e588e2812f82419fb177e42480b4edffc676070
treeb880ed40e79ff50538f3d366b0a1460faf9ed328
parent204cf9406e8f8cd1e3748e69a19e35bf0c224443
Don't leak memory on error in i2b_PVK

The i2b_PVK function leaked a number of different memory allocations on
error paths (and even some non-error paths).

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