kbx: Fix resource leak.
authorJoshua Rogers <git@internot.info>
Fri, 30 Jan 2015 02:42:52 +0000 (11:42 +0900)
committerWerner Koch <wk@gnupg.org>
Thu, 12 Feb 2015 17:46:03 +0000 (18:46 +0100)
commita55c2125380aa2253ff13ea9b39e53d7b7df3db8
tree4b04b919003d253f088cd14325b986cc8a0f9c5c
parent2b2adb85948ce2c7db727ebc0c99e8ad2c29bf5f
kbx: Fix resource leak.

* kbx/keybox-update.c (blob_filecopy): Fix resource leak.  On error
return, 'fp' and 'newfp' was never closed.

--

Signed-off-by: Joshua Rogers <git@internot.info>
[Log entry reformatted, and added more fixes - gniibe]

(cherry picked from commit 7db6c82cec49b7c56c403a8ea98364086baf75f3)
kbx/keybox-update.c