summaryrefslogtreecommitdiffstats
path: root/libasm/asm_end.c
diff options
context:
space:
mode:
Diffstat (limited to 'libasm/asm_end.c')
-rw-r--r--libasm/asm_end.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libasm/asm_end.c b/libasm/asm_end.c
index 74f01f08..33191f9c 100644
--- a/libasm/asm_end.c
+++ b/libasm/asm_end.c
@@ -33,7 +33,12 @@
static int
text_end (AsmCtx_t *ctx __attribute__ ((unused)))
{
- // XXX Does anything have to be done?
+ if (fclose (ctx->out.file) != 0)
+ {
+ __libasm_seterrno (ASM_E_IOERROR);
+ return -1;
+ }
+
return 0;
}