shithub: mc

Download patch

ref: da04ee7b0352fe9d2605481d643ffff09588f99b
parent: 266fc7acbc2283037680295455b9bccd6a4beea5
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Jun 18 10:25:06 EDT 2017

For consistency, lfree should be paired with lappend.

--- a/parse/use.c
+++ b/parse/use.c
@@ -825,7 +825,9 @@
 			settrait(traitfix[i].type, tr);
 	}
 
-	lfree(&traitfix, &ntraitfix);
+	free(traitfix);
+	traitfix = NULL;
+	ntraitfix = 0;
 }
 
 static void protomap(Trait *tr, Type *ty, Node *dcl)