From: Tom Rini Date: Tue, 26 Sep 2017 10:44:41 -0400 Subject: [U-Boot] [PATCHv2] GPT: fix memory leaks identified by Coverity In-Reply-To: <20170926144228.9029-1-alison@peloton-tech.com> References: <48acf7ea-00a9-07d8-e9d3-1754b2e228a0@denx.de> <20170926144228.9029-1-alison@peloton-tech.com> Message-ID: <20170926144441.GH3112@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Sep 26, 2017 at 07:42:28AM -0700, alison at peloton-tech.com wrote: > From: Alison Chaiken > > Create a common exit for most of the error handling code in > do_rename_gpt_parts. Delete the list elements in disk_partitions > before calling INIT_LIST_HEAD from get_gpt_info() a second time. > > The SIZEOF_MISMATCH error is not addressed, since that problem was > already fixed by "GPT: incomplete initialization in > allocate_disk_part". > > Signed-off-by: Alison Chaiken Reported-by: Coverity (CID: 167222, 167235, 167237) Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: