summaryrefslogtreecommitdiff
path: root/parse/use.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-06-18 14:25:06 -0700
committerOri Bernstein <ori@eigenstate.org>2017-06-18 14:25:06 -0700
commitda04ee7b0352fe9d2605481d643ffff09588f99b (patch)
tree5cfcd03e8e2eb1ba999df7852b933c894b7aaa3a /parse/use.c
parent266fc7acbc2283037680295455b9bccd6a4beea5 (diff)
downloadmc-da04ee7b0352fe9d2605481d643ffff09588f99b.tar.gz
For consistency, lfree should be paired with lappend.
Diffstat (limited to 'parse/use.c')
-rw-r--r--parse/use.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/parse/use.c b/parse/use.c
index 80bc4c0..c551738 100644
--- a/parse/use.c
+++ b/parse/use.c
@@ -825,7 +825,9 @@ static void fixtraitmappings(Stab *st)
settrait(traitfix[i].type, tr);
}
- lfree(&traitfix, &ntraitfix);
+ free(traitfix);
+ traitfix = NULL;
+ ntraitfix = 0;
}
static void protomap(Trait *tr, Type *ty, Node *dcl)