[U-Boot] [PATCH 5/8] net: emaclite: Use dynamic allocation
Mike Frysinger
vapier at gentoo.org
Fri Aug 26 21:22:37 CEST 2011
On Friday, August 26, 2011 08:47:20 Michal Simek wrote:
> dev = calloc(1, sizeof(*dev));
> if (dev == NULL)
> return -1;
>
> + emaclite = calloc(1, sizeof(struct xemaclite));
> + if (emaclite == NULL)
> + return -1;
and you just leaked the dev alloc :)
-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/57baf421/attachment.pgp
More information about the U-Boot
mailing list