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
..
2012-10-08 09:59:50 +00:00
2013-01-06 11:11:30 +00:00
2010-04-12 17:08:57 +00:00
2020-06-09 16:59:33 +02:00
2021-03-15 16:57:34 +01:00
2012-10-18 07:22:57 +00:00