Don't leak memory on ASN1_item_pack() error path
authorMatt Caswell <matt@openssl.org>
Wed, 27 Apr 2016 16:19:01 +0000 (17:19 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 1 Jun 2016 17:00:53 +0000 (18:00 +0100)
commit69e2bd32efb756b59cea75af22d869679c448e91
tree2b090cf1c811ef39f1888315bf081f1b0c6c5c70
parentfe71bb3ad97ed01ccf92812891cc2bc3ef3dce76
Don't leak memory on ASN1_item_pack() error path

The ASN1_item_pack() function was leaking an ASN1_STRING object on error
paths.

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