diff lwasm/insn_rel.c @ 91:95181f1ad183

Really fix memory leaks
author lost@l-w.ca
date Wed, 22 Jun 2011 19:06:14 -0600
parents 651b85a98c1b
children 7b0716264251
line wrap: on
line diff
--- a/lwasm/insn_rel.c	Wed Jun 22 18:58:10 2011 -0600
+++ b/lwasm/insn_rel.c	Wed Jun 22 19:06:14 2011 -0600
@@ -93,6 +93,7 @@
 	if (!t)
 	{
 		lwasm_register_error(as, l, "Bad operand");
+		lw_expr_destroy(t);
 		return;
 	}
 	l -> len = OPLEN(instab[l -> insn].ops[0]) + 2;