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
..
2021-04-09 11:05:54 +02:00
2020-08-07 09:48:33 +02:00
2021-04-09 10:46:15 +02:00
2021-01-22 20:10:38 +01:00
2021-03-24 22:45:00 +01:00
2021-04-09 10:46:15 +02:00
2021-04-09 11:05:54 +02:00
2021-04-09 11:05:54 +02:00
2021-04-09 11:05:54 +02:00
2020-01-14 17:48:50 +01:00
2021-04-09 10:46:15 +02:00
2021-04-09 11:05:54 +02:00
2021-04-09 11:05:54 +02:00
2020-07-08 16:07:05 +02:00
2021-04-09 10:46:15 +02:00
2020-02-07 09:31:22 +01:00
2021-04-09 11:05:54 +02:00
2021-04-09 11:05:54 +02:00
2020-06-09 16:59:33 +02:00
2021-04-09 11:05:54 +02:00
2021-04-09 10:46:15 +02:00
2021-04-09 10:46:15 +02:00
2021-04-09 10:46:15 +02:00
2021-04-09 10:46:15 +02:00
2020-12-22 19:11:50 +01:00
2021-04-13 14:00:49 +02:00
2021-04-09 10:46:15 +02:00
2020-03-01 21:36:00 +01:00
2021-04-09 11:05:54 +02:00
2020-01-14 17:48:50 +01:00
2021-04-09 10:46:15 +02:00
2021-04-09 10:46:15 +02:00
2019-12-31 13:23:55 +01:00
2021-04-09 11:05:54 +02:00
2021-04-09 11:05:54 +02:00
2021-04-09 10:46:15 +02:00
2021-04-09 11:05:54 +02:00
2020-11-12 18:19:44 +01:00
2021-04-09 10:46:15 +02:00
2021-03-15 16:57:34 +01:00
2021-04-09 10:46:15 +02:00
2021-03-14 21:59:58 +00:00
2021-04-09 11:05:54 +02:00
2021-04-09 11:05:54 +02:00
2020-12-22 19:11:50 +01:00
2021-04-09 11:05:54 +02:00
2021-04-09 10:46:15 +02:00
2021-05-06 09:51:58 +02:00
2021-04-09 10:46:15 +02:00
2020-07-11 13:33:28 +02:00
2021-04-09 11:05:54 +02:00
2021-04-13 13:18:17 +02:00
2021-05-20 11:56:38 +01:00