target/m68k: Fix a tcg_temp leak

The function gen_get_ccr() returns a tcg_temp created with
tcg_temp_new(). Free it with tcg_temp_free().

Backports commit 44c64e90950adf9efe7f4235a32eb868d1290ebb from qemu
This commit is contained in:
Philippe Mathieu-Daudé 2019-05-17 12:05:05 -04:00 committed by Lioncash
parent a72a53c2d9
commit 3c6cb445a0
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7

View File

@ -2292,6 +2292,7 @@ static TCGv gen_get_sr(DisasContext *s)
sr = tcg_temp_new(tcg_ctx);
tcg_gen_andi_i32(tcg_ctx, sr, tcg_ctx->QREG_SR, 0xffe0);
tcg_gen_or_i32(tcg_ctx, sr, sr, ccr);
tcg_temp_free(tcg_ctx, ccr);
return sr;
}