target/arm: fix TCG temp leak in aarch64 rev16
authorEmilio G. Cota <cota@braap.org>
Mon, 24 Jul 2017 16:56:12 +0000 (17:56 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 24 Jul 2017 16:59:28 +0000 (17:59 +0100)
Fix a TCG temporary leak in the new aarch64 rev16 handling.

Signed-off-by: Emilio G. Cota <cota@braap.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/translate-a64.c

index 883e9df0c2448086c67037aae89f22657886a916..58ed4c6d05759b73e5da22121c864c0d89c112e4 100644 (file)
@@ -4051,6 +4051,7 @@ static void handle_rev16(DisasContext *s, unsigned int sf,
     tcg_gen_shli_i64(tcg_rd, tcg_rd, 8);
     tcg_gen_or_i64(tcg_rd, tcg_rd, tcg_tmp);
 
+    tcg_temp_free_i64(mask);
     tcg_temp_free_i64(tcg_tmp);
 }