]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
target/m68k: Fix a tcg_temp leak
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 10 Mar 2019 00:34:25 +0000 (01:34 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 16 May 2019 22:30:47 +0000 (00:30 +0200)
The function gen_get_ccr() returns a tcg_temp created with
tcg_temp_new(). Free it with tcg_temp_free().

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20190310003428.11723-4-f4bug@amsat.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
target/m68k/translate.c

index 176c5d966caa07808b03ed59a9b3ae531cdb9ab6..bf700c01b116c7c06c30dfeec8bf9b84caccc5a7 100644 (file)
@@ -2227,6 +2227,7 @@ static TCGv gen_get_sr(DisasContext *s)
     sr = tcg_temp_new();
     tcg_gen_andi_i32(sr, QREG_SR, 0xffe0);
     tcg_gen_or_i32(sr, sr, ccr);
+    tcg_temp_free(ccr);
     return sr;
 }