If my NVS partition is very small like 24KB, this is NOT a problem. But if my NVS is large like 2MB, this becomes a real problem. In the NVS code, I think data structures inside "nvs_pagemanager.cpp" is growing as I repeat read/write into NVS.
Here is the code that will reproduce this problem:
https://drive.google.com/open?id=0B8IOF ... 2ttWmdBR1U
After downloading you can build with these commands to reproduce leak case and no leak case.
Again, this is NOT really a leak, but it just uses too much memory.
To reproduce LEAK case:
Code: Select all
make defconfig SDKCONFIG_DEFAULTS=sdkconfig.leak.defaults
make
make erase_flash flash
Code: Select all
make defconfig SDKCONFIG_DEFAULTS=sdkconfig.noleak.defaults
make
make erase_flash flash