* [PATCH] fix a memory leak in compile-i386.c
[not found] <20110809115554.GH7659@shale.localdomain>
@ 2011-08-09 12:20 ` Jonathan Neuschäfer
2011-08-10 5:41 ` Jeff Garzik
0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Neuschäfer @ 2011-08-09 12:20 UTC (permalink / raw)
To: linux-sparse; +Cc: Dan Carpenter, Jonathan Neuschäfer
Don't allocate val twice in emit_divide.
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
---
compile-i386.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/compile-i386.c b/compile-i386.c
index abe9313..da3ee49 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);
--
1.7.5.4
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] fix a memory leak in compile-i386.c
2011-08-09 12:20 ` [PATCH] fix a memory leak in compile-i386.c Jonathan Neuschäfer
@ 2011-08-10 5:41 ` Jeff Garzik
2011-08-11 10:05 ` Christopher Li
0 siblings, 1 reply; 3+ messages in thread
From: Jeff Garzik @ 2011-08-10 5:41 UTC (permalink / raw)
To: Jonathan Neuschäfer; +Cc: linux-sparse, Dan Carpenter
On 08/09/2011 08:20 AM, Jonathan Neuschäfer wrote:
> Don't allocate val twice in emit_divide.
>
> Signed-off-by: Jonathan Neuschäfer<j.neuschaefer@gmx.net>
Acked-by: Jeff Garzik <jgarzik@redhat.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] fix a memory leak in compile-i386.c
2011-08-10 5:41 ` Jeff Garzik
@ 2011-08-11 10:05 ` Christopher Li
0 siblings, 0 replies; 3+ messages in thread
From: Christopher Li @ 2011-08-11 10:05 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Jonathan Neuschäfer, linux-sparse, Dan Carpenter
On Tue, Aug 9, 2011 at 10:41 PM, Jeff Garzik <jeff@garzik.org> wrote:
>
> Acked-by: Jeff Garzik <jgarzik@redhat.com>
>
Applied.
Chris
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-08-11 10:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20110809115554.GH7659@shale.localdomain>
2011-08-09 12:20 ` [PATCH] fix a memory leak in compile-i386.c Jonathan Neuschäfer
2011-08-10 5:41 ` Jeff Garzik
2011-08-11 10:05 ` Christopher Li
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.