gpg: release DEK soon after its use.
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 12 Dec 2014 08:41:56 +0000 (17:41 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Fri, 12 Dec 2014 08:46:45 +0000 (17:46 +0900)
commit4f0d526b7df871318508f8c3d2f57e7069c47e6f
tree1499cf692a4d9f39bdeb7489c1c27ac79afb7080
parent4e03e2757521ddc39d627712937227b84bf72275
gpg: release DEK soon after its use.

* g10/keygen.c (generate_subkeypair): Release DEK soon.

--

This fixes the out_of_core error in the test case of adding
RSA-4096 subkey to RSA-4096 primary key with configuration:

    s2k-cipher-algo S10

Debian-bug-id: 772780

Cherry-picked da66ad5bba4215b9ddd0cb927a89aa75355632aa from
STABLE-BRANCH-1-4 branch.
g10/keygen.c