shithub: mc

Download patch

ref: f8045c8918cbe414eb4b324512790e4907c9bc67
parent: 763778b6ec6d13744cecedde5ee35675acfcb4ed
author: Michael Forney <mforney@mforney.org>
date: Sun Jun 18 09:09:04 EDT 2017

Only need to free typefixdest once

--- a/parse/use.c
+++ b/parse/use.c
@@ -789,8 +789,7 @@
 			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);
 }