Files
u-boot/drivers/net
Mario Six 5775f00e12 net: tsec: Fix memory leak in error path
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.six@gdsys.cc>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
2018-02-26 15:28:43 -06:00
..
2016-10-23 18:33:18 -04:00
2017-06-28 11:43:39 -04:00
2017-06-28 11:43:39 -04:00
2018-02-04 12:00:58 +01:00
2016-12-16 17:15:27 +01:00
2017-09-07 13:23:52 -05:00
2018-02-23 10:40:51 -05:00
2017-09-07 13:23:52 -05:00
2016-08-15 15:29:03 -05:00
2013-04-01 16:33:52 -04:00
2017-06-02 14:44:20 -05:00
2017-06-01 07:03:01 -06:00
2016-08-15 15:29:03 -05:00
2015-09-11 17:14:43 -04:00
2017-04-05 13:52:01 -04:00
2017-06-01 07:03:01 -06:00