mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
target-ppc: Fix Temporary Variable Leak in bctar
Fix a temporary variable leak detected in the bctar instruction: Opcode 13 10 11 (4d910460) leaked temporaries Signed-off-by: Tom Musta <tommusta@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
committed by
Alexander Graf
parent
13b6a45565
commit
a9e8f4e7df
@@ -3879,7 +3879,7 @@ static inline void gen_bcond(DisasContext *ctx, int type)
|
||||
gen_update_nip(ctx, ctx->nip);
|
||||
tcg_gen_exit_tb(0);
|
||||
}
|
||||
if (type == BCOND_LR || type == BCOND_CTR) {
|
||||
if (type == BCOND_LR || type == BCOND_CTR || type == BCOND_TAR) {
|
||||
tcg_temp_free(target);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user