From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsExB-0003k2-6S for qemu-devel@nongnu.org; Wed, 04 Jun 2014 13:26:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsEx2-0003vC-0P for qemu-devel@nongnu.org; Wed, 04 Jun 2014 13:26:21 -0400 From: Tom Musta Date: Wed, 4 Jun 2014 12:26:02 -0500 Message-Id: <1401902762-29452-1-git-send-email-tommusta@gmail.com> Subject: [Qemu-devel] [PATCH] target-ppc: Fix Temporary Variable Leak in bctar List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: tommusta@gmail.com, qemu-ppc@nongnu.org Fix a temporary variable leak detected in the bctar instruction: Opcode 13 10 11 (4d910460) leaked temporaries Signed-off-by: Tom Musta --- target-ppc/translate.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 2de362c..3a8d702 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -3891,7 +3891,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); } } -- 1.7.1