Mercurial > hg > index.cgi
comparison 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 |
comparison
equal
deleted
inserted
replaced
90:e20f9d59d5da | 91:95181f1ad183 |
---|---|
91 | 91 |
92 t = lwasm_parse_expr(as, p); | 92 t = lwasm_parse_expr(as, p); |
93 if (!t) | 93 if (!t) |
94 { | 94 { |
95 lwasm_register_error(as, l, "Bad operand"); | 95 lwasm_register_error(as, l, "Bad operand"); |
96 lw_expr_destroy(t); | |
96 return; | 97 return; |
97 } | 98 } |
98 l -> len = OPLEN(instab[l -> insn].ops[0]) + 2; | 99 l -> len = OPLEN(instab[l -> insn].ops[0]) + 2; |
99 | 100 |
100 e1 = lw_expr_build(lw_expr_type_special, lwasm_expr_linelen, l); | 101 e1 = lw_expr_build(lw_expr_type_special, lwasm_expr_linelen, l); |