From 84e51f9005d81e21c24c453babbb9347f0fd0795 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jonathan=20Neusch=C3=A4fer?= Date: Tue, 9 Aug 2011 14:20:23 +0200 Subject: [PATCH] fix a memory leak in compile-i386.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Don't allocate val twice in emit_divide. Signed-off-by: Jonathan Neuschäfer Acked-by: Jeff Garzik Signed-off-by: Christopher Li --- compile-i386.c | 1 - 1 file changed, 1 deletion(-) diff --git a/compile-i386.c b/compile-i386.c index abe93131..da3ee497 100644 --- a/compile-i386.c +++ b/compile-i386.c @@ -1302,7 +1302,6 @@ static struct storage *emit_divide(struct expression *expr, struct storage *left eax_edx = get_hardreg(hardreg_storage_table + EAX_EDX, 1); /* init EDX to 0 */ - val = new_storage(STOR_VALUE); val->flags = STOR_WANTS_FREE; emit_move(val, REG_EDX, NULL, NULL); -- 2.11.4.GIT