ecc: fix memory leaks.
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 6 Jul 2015 03:01:00 +0000 (12:01 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 6 Jul 2015 03:01:00 +0000 (12:01 +0900)
commit0a7547e487a8bc4e7ac9599c55579eb2e4a13f06
treefc3d4073f9bccd0a437037ef9764f0a8be5c8fd5
parenta36ee7501f68ad7ebcfe31f9659430b9d2c3ddd1
ecc: fix memory leaks.

cipher/ecc.c (ecc_generate): Fix memory leak on error of
_gcry_pk_util_parse_flaglist and _gcry_ecc_eddsa_encodepoint.
(ecc_check_secret_key): Fix memory leak on error of
_gcry_ecc_update_curve_param.
(ecc_sign, ecc_verify, ecc_encrypt_raw, ecc_decrypt_raw): Remove
unnecessary sexp_release and fix memory leak on error of
_gcry_ecc_fill_in_curve.
(ecc_decrypt_raw): Fix double free of the point kG and memory leak
on error of _gcry_ecc_os2ec.
cipher/ecc.c