summary refs log tree commit diff
path: root/emit.c
diff options
context:
space:
mode:
Diffstat (limited to 'emit.c')
-rw-r--r--emit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/emit.c b/emit.c
index 490628e..c4f6c49 100644
--- a/emit.c
+++ b/emit.c
@@ -79,6 +79,8 @@ emitdat(Dat *d, FILE *f)
 			emitlnk(d->name, d->lnk, SecBss, f);
 			fprintf(f, "\t.fill %"PRId64",1,0\n", zero);
 		}
+		fputs("/* end data */\n\n", f);
+		freeall();
 		break;
 	case DZ:
 		if (zero != -1)