From: Wolfgang Denk Date: Sat, 24 Jan 2009 01:53:51 +0100 Subject: [U-Boot] env_nand malloc not released In-Reply-To: <4963AB14.9010508@siconix.com> References: <495038A4.5000509@siconix.com> <4963AB14.9010508@siconix.com> Message-ID: <20090124005351.A5321832E425@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Derek Ou, In message <4963AB14.9010508@siconix.com> you wrote: > > In the common/env_nand.c, function env_relocate_spec (for > CONFIG_ENV_OFFSET_REDUND) malloc two memory areas in line 296 and 297. > If it hits line 308 when both environment areas not found, it will > return without freeing the two memory areas. Is this a bug or I am > missing something? Can you please submit a patch? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Little known fact about Middle Earth: The Hobbits had a very sophi- sticated computer network! It was a Tolkien Ring...