ref: 763778b6ec6d13744cecedde5ee35675acfcb4ed
parent: 3e8c358141a5fabeec1db153a5762eb28f571a76
author: Michael Forney <mforney@mforney.org>
date: Sun Jun 18 09:00:43 EDT 2017
Prevent traitfixtype from getting out of sync These arrays are always appended to at the same time, and fixtraitmappings relies on their indices corresponding. Previously, only traitfixdest and traitfixid were cleared at the end of fixtraitmappings, causing traits to get added to incorrect types.
--- a/parse/use.c
+++ b/parse/use.c
@@ -822,6 +822,7 @@
}
lfree(&traitfixdest, &ntraitfixdest);
+ lfree(&traitfixtype, &ntraitfixtype);
lfree(&traitfixid, &ntraitfixid);
}