summaryrefslogtreecommitdiff
path: root/parse/dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse/dump.c')
-rw-r--r--parse/dump.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/parse/dump.c b/parse/dump.c
index f84eea1..9437984 100644
--- a/parse/dump.c
+++ b/parse/dump.c
@@ -111,16 +111,14 @@ outenv(Tyenv *e, FILE *fd, int depth)
Type *t;
char *s;
- if (e->tab) {
- k = htkeys(e->tab, &n);
- for (i = 0; i < n; i++) {
- t = htget(e->tab, k[i]);
- s = tystr(t);
- findentf(fd, depth + 1, "B %s\n", s);
- free(s);
- }
- free(k);
+ k = htkeys(e->tab, &n);
+ for (i = 0; i < n; i++) {
+ t = htget(e->tab, k[i]);
+ s = tystr(t);
+ findentf(fd, depth + 1, "B %s\n", s);
+ free(s);
}
+ free(k);
}
void