Fix a memory leak in EC_GROUP_get_ecparameters()
authorKazuki Yamaguchi <k@rhe.jp>
Sat, 6 Aug 2016 13:24:44 +0000 (22:24 +0900)
committerMatt Caswell <matt@openssl.org>
Mon, 22 Aug 2016 14:10:03 +0000 (15:10 +0100)
commit0110a4703608430c2131237c6afcf932a28c27ff
treefe38e7ea9588bcf3affa6afac14b4c3692caed14
parent9ba6f347fedbe103a06c8fd303912b358eacb11c
Fix a memory leak in EC_GROUP_get_ecparameters()

The variable 'buffer', allocated by EC_POINT_point2buf(), isn't
free'd on the success path.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
crypto/ec/ec_asn1.c
test/ectest.c