asn1_item_embed_new(): don't free an embedded item
authorRichard Levitte <levitte@openssl.org>
Mon, 23 Oct 2017 14:48:17 +0000 (16:48 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 23 Oct 2017 15:44:30 +0000 (17:44 +0200)
commitcdc3307d4257f4fcebbab3b2b44207e1a399da05
treed25607350d957bb90f0675971920648b75c7eeb1
parent8c6101781a47cb33a5ccba50b8abfe2b6ab42c03
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/4571)
crypto/asn1/tasn_new.c