On Wed, Dec 13, 2017 at 1:18 AM, Mario Six <mario....@gdsys.cc> wrote:
> tsec_initialize allocates a private driver structure using malloc.
> Should the memory allocation of this private structure fail, the
> function execution is aborted with a return 0, but the previously
> allocated device structure is never freed, hence leaked.
>
> Free the device structure in the error case.
>
> Signed-off-by: Mario Six <mario....@gdsys.cc>

Acked-by: Joe Hershberger <joe.hershber...@ni.com>
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to