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
..
2017-03-01 17:19:51 -08:00
2017-07-05 16:27:40 +02:00
2016-12-16 22:39:22 +01:00
2017-06-05 12:24:01 -07:00
2017-08-22 14:31:32 +02:00
2017-03-08 13:32:24 +01:00
2017-05-25 19:01:07 +02:00