Stefano Babic 33f0086cb7 env: fix memory leak in fw_env routines
fw_env_open allocates buffers to store the environment, but these
buffers are never freed. This becomes quite nasty using the fw_ tools as
library, because each access to the environment (even just reading a
variable) generates a memory leak equal to the size of the environment.

Fix this renaming fw_env_close() as fw_env_flush(), because the function
really flushes the environment from RAM to storage, and add a
fw_env_close function to free the allocated resources.

Signed-off-by: Stefano Babic <sbabic@denx.de>
2017-04-12 13:28:29 -04:00
..
2017-04-07 11:23:45 +05:30
2016-05-02 18:37:09 -04:00
2016-05-02 18:37:09 -04:00
2016-11-23 23:41:23 -08:00
2009-11-24 23:43:18 +01:00
2017-02-01 09:04:18 +01:00
2017-04-07 11:23:45 +05:30
2016-02-21 11:09:19 +01:00
2009-04-28 01:16:46 +02:00
2015-11-16 17:22:18 -05:00