summaryrefslogtreecommitdiff
path: root/tests/fdpassing.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fdpassing.c')
-rw-r--r--tests/fdpassing.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/fdpassing.c b/tests/fdpassing.c
index 3e1b71b..0e23ffc 100644
--- a/tests/fdpassing.c
+++ b/tests/fdpassing.c
@@ -176,6 +176,7 @@ client (assuan_context_t ctx, const char *fname)
rc = assuan_sendfd (ctx, fileno (fp));
if (rc)
{
+ fclose (fp);
log_error ("assuan_sendfd failed: %s\n", gpg_strerror (rc));
return -1;
}