]> xenbits.xensource.com Git - qemu-upstream-4.6-testing.git/commitdiff
target-ppc: Fix Temporary Variable Leak in bctar
authorTom Musta <tommusta@gmail.com>
Wed, 4 Jun 2014 17:26:02 +0000 (12:26 -0500)
committerAlexander Graf <agraf@suse.de>
Mon, 16 Jun 2014 11:24:42 +0000 (13:24 +0200)
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>
target-ppc/translate.c

index 71e38a52e6f71c36774ccf120598e36981d815ef..6affe7e617ad626c651445789eeb120d3ebe6382 100644 (file)
@@ -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);
     }
 }