w32: Fix memleak in an error code paths.
authorWerner Koch <wk@gnupg.org>
Tue, 15 Apr 2014 14:40:48 +0000 (16:40 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 15 Apr 2014 20:18:04 +0000 (22:18 +0200)
commit85a07ca7e3dffdefc8ae74beebb59e47a6e6bd1b
tree7a8e1fd5fac17a3772986b6e4efde3cc26455dca
parent2bb26185e3b9a048033c559517d6ba7d2eb47066
w32: Fix memleak in an error code paths.

* src/w32-io.c (create_writer): Free CTX in cased of bad FD.
* src/w32-util.c (_gpgme_mkstemp): Free TMPNAME in case of a failed
mkstemp.
--

Found by Hans-Christoph Steiner with cppcheck.
src/w32-io.c
src/w32-util.c