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:15:40 +0000 (17:15 +0200)
commit590bbdfdf43b97abf8817f506f8ab46687d1eadd
tree4fd0bab176d1142b99aab72900171f90cf3a70d6
parentc9fe362303fc54ff19bde7511475f28663f7d554
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)
crypto/asn1/tasn_new.c