nvs: fix memory leaks in HashList and nvs_close
Fixes TW8162. Associated test case is run under Instruments on macOS, until I set up valgrind to test this automatically on Linux.
This commit is contained in:
@@ -116,6 +116,7 @@ extern "C" void nvs_close(nvs_handle handle)
|
||||
return;
|
||||
}
|
||||
s_nvs_handles.erase(it);
|
||||
delete static_cast<HandleEntry*>(it);
|
||||
}
|
||||
|
||||
extern "C" esp_err_t nvs_erase_key(nvs_handle handle, const char* key)
|
||||
|
||||
Reference in New Issue
Block a user