g10: Fix secmem leak.
authorIneiev <ineiev@gnu.org>
Thu, 14 Apr 2016 15:42:25 +0000 (15:42 +0000)
committerNIIBE Yutaka <gniibe@fsij.org>
Wed, 10 May 2017 05:09:54 +0000 (14:09 +0900)
commit2c2121ff3c2b90f21b75dd56c981b4d9e6d1c0e2
treeb144ed759d73cb947789e20368fe2cab57f30d5b
parentbb61191aad98c3dbb487c1f76dd1552d44a52fe3
g10: Fix secmem leak.

* g10/keygen.c (proc_parameter_file): Fix secmem leak.

--

proc_parameter_file adds certain parameters to the list in the PARA
argument; however, these new entries are leaked because they
are added to head, while the PARA list is released by the caller
of proc_parameter_file.

GnuPG-bug-id: 1371
Signed-off-by: Ineiev <ineiev@gnu.org>
g10/keygen.c