Mercurial > hg > index.cgi
comparison lwasm/insn_indexed.c @ 90:e20f9d59d5da
Fixed memory leaks revealed by valgrind
author | lost@l-w.ca |
---|---|
date | Wed, 22 Jun 2011 18:58:10 -0600 |
parents | 35f6d6a5510f |
children | 95181f1ad183 |
comparison
equal
deleted
inserted
replaced
89:651b85a98c1b | 90:e20f9d59d5da |
---|---|
361 pb = (l -> pb & 0x80) ? 0x9D : 0x8D; | 361 pb = (l -> pb & 0x80) ? 0x9D : 0x8D; |
362 break; | 362 break; |
363 } | 363 } |
364 | 364 |
365 l -> pb = pb; | 365 l -> pb = pb; |
366 lw_expr_destroy(e2); | 366 // lw_expr_destroy(e2); |
367 // lw_expr_destroy(e3); | 367 // lw_expr_destroy(e3); |
368 return; | 368 return; |
369 } | 369 } |
370 else if ((l -> pb & 0x80) || ((l -> pb & 0x07) > 3) || v < -16 || v > 15) | 370 else if ((l -> pb & 0x80) || ((l -> pb & 0x07) > 3) || v < -16 || v > 15) |
371 { | 371 { |
417 pb = (l -> pb & 0x03) << 5 | (v & 0x1F); | 417 pb = (l -> pb & 0x03) << 5 | (v & 0x1F); |
418 } | 418 } |
419 l -> pb = pb; | 419 l -> pb = pb; |
420 return; | 420 return; |
421 } | 421 } |
422 lw_expr_destroy(e2); | |
422 } | 423 } |
423 } | 424 } |
424 | 425 |
425 if (lw_expr_istype(e, lw_expr_type_int)) | 426 if (lw_expr_istype(e, lw_expr_type_int)) |
426 { | 427 { |