cipher: fix memory leaks.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 6 Aug 2013 03:57:10 +0000 (12:57 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 6 Aug 2013 03:57:10 +0000 (12:57 +0900)
commitae6ffd9af38cbcac57c220960f683aab91db85cb
treeea685e6a7dfe335e04a67d2fb94da92a509fd36d
parentd8e99a04dba6a606e879464cd11deee760d1e000
cipher: fix memory leaks.

* cipher/elgamal.c (elg_generate_ext): Free XVALUE.

* cipher/pubkey.c (sexp_elements_extract): Don't use IDX for loop.
Call mpi_free.
(sexp_elements_extract_ecc): Call mpi_free.
cipher/elgamal.c
cipher/pubkey.c