diff 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
line wrap: on
line diff
--- a/lwasm/insn_indexed.c	Wed Jun 22 18:57:59 2011 -0600
+++ b/lwasm/insn_indexed.c	Wed Jun 22 18:58:10 2011 -0600
@@ -363,7 +363,7 @@
 				}
 				
 				l -> pb = pb;
-				lw_expr_destroy(e2);
+//				lw_expr_destroy(e2);
 //				lw_expr_destroy(e3);
 				return;
 			}
@@ -419,6 +419,7 @@
 				l -> pb = pb;
 				return;
 			}
+			lw_expr_destroy(e2);
 		}
 	}