Skip to contentSkip to conversation

[5554] CRIS: Plug a few temp leaks.

Qemu-devel Edgar E. Iglesias 1 participant 1 message Oct 27, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 5554

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5554
Author:   edgar_igl
Date:     2008-10-27 21:10:26 +0000 (Mon, 27 Oct 2008)

Log Message:
-----------
CRIS: Plug a few temp leaks.

Modified Paths:
--------------
trunk/target-cris/translate.c

Modified: trunk/target-cris/translate.c
===================================================================

target-cris/translate.c +3 -1
@@ -1928,6 +1928,7 @@
 		t_gen_swapr(t0, t0);
 	cris_alu(dc, CC_OP_MOVE,
 		    cpu_R[dc->op1], cpu_R[dc->op1], t0, 4);
+	tcg_temp_free(t0);
 	return 2;
 }
 
@@ -1954,6 +1955,7 @@
 	t0 = tcg_temp_new(TCG_TYPE_TL);
 	tcg_gen_shl_tl(t0, cpu_R[dc->op2], tcg_const_tl(dc->zzsize));
 	tcg_gen_add_tl(cpu_R[dc->op1], cpu_R[dc->op1], t0);
+	tcg_temp_free(t0);
 	return 2;
 }
 
@@ -1966,7 +1968,7 @@
 	t0 = tcg_temp_new(TCG_TYPE_TL);
 	tcg_gen_shl_tl(t0, cpu_R[dc->op2], tcg_const_tl(dc->zzsize));
 	tcg_gen_add_tl(cpu_R[R_ACR], cpu_R[dc->op1], t0);
-
+	tcg_temp_free(t0);
 	return 2;
 }