summaryrefslogtreecommitdiff
path: root/parse/use.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2017-06-18 13:09:04 -0700
committerOri Bernstein <ori@eigenstate.org>2017-06-18 13:57:18 -0700
commitf8045c8918cbe414eb4b324512790e4907c9bc67 (patch)
tree0aa9371483d8ab10b9a5645c37c6d84979bc443e /parse/use.c
parent763778b6ec6d13744cecedde5ee35675acfcb4ed (diff)
downloadmc-f8045c8918cbe414eb4b324512790e4907c9bc67.tar.gz
Only need to free typefixdest once
Diffstat (limited to 'parse/use.c')
-rw-r--r--parse/use.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/parse/use.c b/parse/use.c
index c547371..1fcfd58 100644
--- a/parse/use.c
+++ b/parse/use.c
@@ -789,8 +789,7 @@ static void fixtypemappings(Stab *st)
lfatal(t->loc, "Duplicate definition of type %s on %s:%d", tystr(old),
file->file.files[old->loc.file], old->loc.line);
}
- for (i = 0; i < ntypefixdest; i++)
- lfree(&typefixdest, &ntypefixdest);
+ lfree(&typefixdest, &ntypefixdest);
lfree(&typefixid, &ntypefixid);
}