packages: nvram: fix memory leak in _nvram_free
authorZhai Zhaoxuan <zhaizhaoxuan@xiaomi.com>
Tue, 11 Jul 2017 10:12:00 +0000 (18:12 +0800)
committerJo-Philipp Wich <jo@mein.io>
Wed, 13 Dec 2017 15:51:59 +0000 (16:51 +0100)
commit06258144266a5adb44d2ef072c2a7c051584a24d
tree9af1e1c310808da027d5639fe768b628c7bb1f0f
parent0f175041ad03d381a575e2c2b1a1c9ca76fe0e99
packages: nvram: fix memory leak in _nvram_free

The value of nvram_tuple_t is allocated in _nvram_realloc,
but it is not freed in _nvram_free.

Signed-off-by: Zhai Zhaoxuan <zhaizhaoxuan@xiaomi.com>
(cherry picked from commit c382237ac33a787043b22abc42f0c5a80278baae)
package/utils/nvram/src/nvram.c