asn1_item_embed_new(): don't free an embedded item
authorRichard Levitte <levitte@openssl.org>
Mon, 23 Oct 2017 14:41:06 +0000 (16:41 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 23 Oct 2017 15:47:45 +0000 (17:47 +0200)
commitca80ba81e243c30873cd11870422a3873a64be73
tree41e651fd2c44da2e258651f6a2e70b7e1794de29
parent84a85b5755befabd450fbb7cc63d5e23a268ddb0
asn1_item_embed_new(): don't free an embedded item

An embedded item wasn't allocated separately on the heap, so don't
free it as if it was.

Issue discovered by Pavel Kopyl

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4572)

(cherry picked from commit 590bbdfdf43b97abf8817f506f8ab46687d1eadd)
crypto/asn1/tasn_new.c