Check for failures, to avoid memory leak
authorRich Salz <rsalz@openssl.org>
Wed, 25 Jul 2018 19:57:18 +0000 (15:57 -0400)
committerRich Salz <rsalz@openssl.org>
Wed, 25 Jul 2018 20:11:43 +0000 (16:11 -0400)
commit9df990cdef581f7330205aef975055e23d8e8d43
tree5bd335511dcc02a22c66e1a6595bebf7e366e551
parenta8a9745257a5071b03d06b82d4b05cabb38d9718
Check for failures, to avoid memory leak

Thanks to Jiecheng Wu, Zuxing Gu for the report.

Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6791)

(cherry picked from commit 037241bf046be8cfc7e9216959393dd20b06fc21)
(Only the EC part)
crypto/ec/ec_ameth.c