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:41:56 +0000 (17:41 +0900)
commitda66ad5bba4215b9ddd0cb927a89aa75355632aa
treeb9be8c391490c6c9ee324f603c9dbbd5c362d8ee
parentc935c73f8262dcce7d5ac823ba4a6a2f563cc3eb
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
g10/keygen.c