ecc: Fix memory leaks on error.
authorNIIBE Yutaka <gniibe@fsij.org>
Wed, 10 Feb 2016 08:35:43 +0000 (17:35 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Wed, 10 Feb 2016 08:35:43 +0000 (17:35 +0900)
commitb12dd550fd6af687ef95c584d0d8366c34965cc8
tree15a3f531774227775a9c07dbe9a5ae4a64d1d102
parent4a19b195697e0b6534d28de9401ae3e9d86adb42
ecc: Fix memory leaks on error.

* cipher/ecc.c (ecc_decrypt_raw): Go to leave to release memory.
* mpi/ec.c (_gcry_mpi_ec_curve_point): Likewise.

--

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
cipher/ecc.c
mpi/ec.c