shithub: scc

Download patch

ref: d17f6bb884dbbd19ef4e47632a627e059118e802
parent: e4a2c5ccce08cc186506cfbd6a7597b10ac957a8
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sun Sep 24 04:39:21 EDT 2017

[as] Free in binary()

--- a/as/expr.c
+++ b/as/expr.c
@@ -125,8 +125,10 @@
 	default:
 		abort();
 	}
+	deltree(l);
+	deltree(r);
 
-	np = node(NUMBER, l, r);
+	np = node(NUMBER, NULL, NULL);
 	np->sym = tmpsym(val);
 	return np;