Free memory on an error path
authorMatt Caswell <matt@openssl.org>
Tue, 14 Jun 2016 10:45:34 +0000 (11:45 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 14 Jun 2016 10:45:34 +0000 (11:45 +0100)
commit036e61b1669fee477af2d5d1afd0b015517f7f9a
treedd91481539d8536c3c75ab763ff207e91fd37d2a
parentd285b5418ee1ff361f06545e0489ece61bdd1a50
Free memory on an error path

The function a2i_ASN1_STRING can encounter an error after already
allocating a buffer. It wasn't always freeing that buffer on error.

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