From mboxrd@z Thu Jan 1 00:00:00 1970 From: Derek Ou Date: Tue, 06 Jan 2009 12:03:48 -0700 Subject: [U-Boot] env_nand malloc not released In-Reply-To: <495038A4.5000509@siconix.com> References: <495038A4.5000509@siconix.com> Message-ID: <4963AB14.9010508@siconix.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, all, 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? Thanks, Derek