Kevin Darbyshire-Bryant 85f46cd260 firmware-utils: fix coverity zytrx.c resource leak
fix coverity resource leak warning:

    	*len = stat.st_size;
    	mapped = mmap(NULL, stat.st_size, PROT_READ, MAP_SHARED, fd, 0);
    	if (close(fd) < 0)
CID 1484880:  Resource leaks  (RESOURCE_LEAK)
Variable "mapped" going out of scope leaks the storage it points to.
    		return NULL;
    	return mapped;
    }

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Signed-off-by: maurerr <mariusd84@gmail.com>
2021-09-01 08:08:07 +00:00
..
2021-09-01 08:07:13 +00:00
2021-09-01 08:08:01 +00:00
2021-09-01 08:06:55 +00:00
2021-09-01 08:07:42 +00:00
2021-09-01 08:07:13 +00:00
2018-11-25 19:23:03 +01:00
2019-07-08 16:42:26 +02:00
2021-09-01 08:07:13 +00:00
2020-03-14 13:20:06 +00:00
2019-02-26 23:20:04 +01:00
2021-09-01 08:07:25 +00:00
2021-09-01 08:07:13 +00:00
2021-09-01 08:06:53 +00:00
2020-04-09 22:09:04 +02:00
2021-09-01 08:06:56 +00:00
2021-09-01 08:07:25 +00:00
2019-11-24 21:35:45 +01:00
2020-02-18 21:39:14 +01:00
2019-03-10 21:36:28 +01:00
2021-09-01 08:07:44 +00:00
2020-04-09 22:09:13 +02:00
2021-09-01 08:07:32 +00:00