openwrtv3/package/utils/nvram
BangLang Huang 1948d8e08c nvram: fix memory leak
Fix memory leak on nvram_open() and nvram_open_rdonly().

For nvram_open(), the 'fd' should be closed on error, and
mmap_area should be unmap when nvram magic can not be found.

For nvram_open_rdonly(), the 'file' variable should free before
return. Once nvram_find_mtd() return successfully, it will allocate
memory to save mtd device string.

Signed-off-by: BangLang Huang <banglang.huang@foxmail.com>
2017-08-22 14:31:32 +02:00
..
files packages: clean up the package folder 2013-06-21 16:54:37 +00:00
src nvram: fix memory leak 2017-08-22 14:31:32 +02:00
Makefile utils/nvram: drop Build/Prepare rule in favor of default one 2016-10-15 11:36:52 +02:00