openwrt/package
BangLang Huang 9e84d333b1 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>
(cherry picked from commit 1948d8e08c)
2017-12-13 16:23:39 +01:00
..
base-files base-files: drop unused preinit_echo function 2017-12-13 16:23:39 +01:00
boot package/grub2: update to 2.02 2017-12-13 15:54:12 +01:00
devel valgrind: bump to 3.13.0 2017-12-13 16:23:38 +01:00
firmware ath10k-firmware: do not select the qca988x by default 2017-05-27 14:22:16 +02:00
kernel kmod-sched-cake: drop maintainer 2017-12-13 16:23:39 +01:00
libs zlib: use default Build/Configure rule 2017-12-13 16:23:39 +01:00
network samba36: Remove legacy options 2017-12-13 16:23:39 +01:00
system ca-certificates: Update to 20170717 2017-12-13 16:23:39 +01:00
utils nvram: fix memory leak 2017-12-13 16:23:39 +01:00
Makefile build: fix triggering opkg/host compilation 2017-04-09 15:42:20 +02:00