common: Rework resource cleanup when handling errors.
authorJustus Winter <justus@g10code.com>
Tue, 26 Jul 2016 12:31:11 +0000 (14:31 +0200)
committerJustus Winter <justus@g10code.com>
Tue, 26 Jul 2016 12:31:11 +0000 (14:31 +0200)
commit35132a8b119dbc3393ceb0d0874917905d1a6354
tree1852e9416c7f8441ca49c150032cab6c2dc79cc1
parentfe40e9c53dc0710ff73e72d05ba8040874465b55
common: Rework resource cleanup when handling errors.

* common/exectool.c (gnupg_exec_tool_stream): Rework error handling.

Signed-off-by: Justus Winter <justus@g10code.com>
common/exectool.c