shithub: mc

Download patch

ref: 5ec2c38d36f593ebbe4eb0da31b7537455f1f175
parent: 1342e9853431adbf651c5a867396c02f87d51144
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Feb 8 09:44:21 EST 2016

Fix trivial leak.

    We're going to be leaky, sure, but do we need to be /that/
    leaky?

    Thanks @paperwing.

--- a/parse/infer.c
+++ b/parse/infer.c
@@ -390,9 +390,9 @@
 	if (debugopt['u']) {
 		to = tystr(t);
 		indentf(st->indentdepth, "Freshen %s => %s\n", from, to);
-		free(from);
 		free(to);
 	}
+	free(from);
 
 	return t;
 }