g10: Release resources when returning an error in get_seckey.
authorNeal H. Walfield <neal@g10code.com>
Wed, 16 Sep 2015 12:03:50 +0000 (14:03 +0200)
committerNeal H. Walfield <neal@g10code.com>
Wed, 16 Sep 2015 13:15:28 +0000 (15:15 +0200)
commit1b601de06a57c78537a336093d2531d8c58bc0d2
treebb831665325cfde13dee9a70d5ec4ef1ff21c6ff
parentcab581c486e1987445092b1afdf2cba1f62d017d
g10: Release resources when returning an error in get_seckey.

* g10/getkey.c (get_seckey): If the key doesn't have a secret key,
release *PK.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>.
g10/getkey.c