[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1178784573.3734.5.camel@sauron>
Date: Thu, 10 May 2007 11:09:33 +0300
From: Artem Bityutskiy <dedekind@...radead.org>
To: Jesper Juhl <jesper.juhl@...il.com>
Cc: linux-kernel@...r.kernel.org, dedekind@...utronix.de
Subject: Re: [PATCH] fix memory leak in UBI scanning unit
On Thu, 2007-05-10 at 00:26 +0200, Jesper Juhl wrote:
> In drivers/mtd/ubi/scan.c::paranoid_check_si() there's a memory leak.
> If the call
> err = ubi_io_is_bad(ubi, pnum);
> returns <0, then we'll return with out freeing (and thus leak) buf.
> This patch eliminates the memory leak by freeing buf before returning.
>
> Problem spotted by the Coverity checker.
It was already reported and fixed in our git tree. But thanks anyway.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists