Kevin Darbyshire-Bryant baf2a50ef3 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>
2021-05-20 11:56:38 +01:00
..
2020-11-21 18:49:08 +01:00
2021-04-23 20:57:33 +02:00
2020-08-30 22:21:34 +02:00
2021-02-28 00:09:09 +00:00
2020-11-21 18:48:39 +01:00
2018-11-25 19:23:03 +01:00
2019-07-08 16:42:26 +02:00
2020-11-21 18:49:17 +01:00
2020-03-14 13:20:06 +00:00
2019-02-26 23:20:04 +01:00
2020-12-31 10:03:21 +01:00
2020-11-21 18:49:27 +01:00
2020-08-23 19:40:32 +02:00
2020-04-09 22:09:04 +02:00
2020-09-02 16:29:22 +02:00
2020-12-31 10:03:21 +01: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-03-01 16:39:17 +00:00
2020-04-09 22:09:13 +02:00
2021-01-30 18:14:50 -10:00