Files
immortalwrt/tools
Kevin Darbyshire-Bryant 979a7cb16a 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 23:16:44 +08:00
..
2019-09-07 15:36:23 +08:00
2019-12-14 12:18:29 +08:00
2019-10-26 10:01:37 +08:00
2020-08-23 23:38:07 +08:00
2021-04-25 23:13:24 +08:00
2020-08-31 11:10:51 +08:00
2021-03-01 12:08:11 +08:00
2019-09-07 15:36:23 +08:00
2019-09-07 15:36:23 +08:00
2019-09-07 15:36:23 +08:00
2019-09-07 15:36:23 +08:00
2019-10-26 10:01:37 +08:00
2020-02-20 03:02:36 +08:00
2019-09-07 15:36:23 +08:00
2019-10-26 10:01:37 +08:00
2019-09-07 15:36:23 +08:00
2020-12-31 17:50:39 +08:00
2019-09-07 15:36:23 +08:00
2019-09-07 15:36:23 +08:00
2020-08-28 09:26:04 +08:00
2020-08-24 11:34:03 +08:00
2020-04-10 09:17:20 +08:00
2020-12-31 17:50:39 +08:00
2019-11-30 19:24:57 +08:00
2019-09-07 15:36:23 +08:00
2020-02-20 03:02:22 +08:00
2019-10-26 10:01:37 +08:00
2020-04-23 01:44:28 +08:00
2020-03-01 14:05:09 +08:00
2021-03-02 12:07:04 +08:00
2020-04-10 09:17:36 +08:00
2019-09-07 15:36:23 +08:00
2021-01-31 22:18:38 +08:00
2021-03-14 23:47:44 +08:00