From: Mike Frysinger Date: Fri, 26 Aug 2011 15:25:10 -0400 Subject: [U-Boot] [PATCH 7/8] net: emaclite: Free allocated space for device In-Reply-To: <1314362843-18214-7-git-send-email-monstr@monstr.eu> References: <1314362843-18214-1-git-send-email-monstr@monstr.eu> <1314362843-18214-6-git-send-email-monstr@monstr.eu> <1314362843-18214-7-git-send-email-monstr@monstr.eu> Message-ID: <201108261525.11054.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Friday, August 26, 2011 08:47:22 Michal Simek wrote: > --- a/drivers/net/xilinx_emaclite.c > +++ b/drivers/net/xilinx_emaclite.c > @@ -356,8 +356,10 @@ int xilinx_emaclite_initialize (bd_t *bis, int > base_addr) return -1; > > emaclite = calloc(1, sizeof(struct xemaclite)); > - if (emaclite == NULL) > + if (emaclite == NULL) { > + free(dev); > return -1; > + } since this bug was introduced by your patch 5/8, please squash it into that rather than sending out a known buggy one -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20110826/d0510c9a/attachment.pgp