mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/clang_tidy_and_nvs_memory_issue' into 'release/v5.0'
clang tidy add C++ and nvs memory issue (backports 5.0) See merge request espressif/esp-idf!22666
This commit is contained in:
commit
319208c3d1
@ -7,8 +7,8 @@
|
||||
- "tools/ci/static-analysis-rules.yml"
|
||||
- "tools/ci/clang_tidy_dirs.txt"
|
||||
|
||||
- "**/*.{c,C}"
|
||||
- "**/*.{h,H}"
|
||||
- "**/*.{c,C,cpp}"
|
||||
- "**/*.{h,H,hpp}"
|
||||
- "components/**/Kconfig"
|
||||
- "components/**/CMakeList.txt"
|
||||
|
||||
|
@ -112,12 +112,14 @@ esp_err_t Storage::init(uint32_t baseSector, uint32_t sectorCount)
|
||||
item.getKey(entry->mName, sizeof(entry->mName));
|
||||
err = item.getValue(entry->mIndex);
|
||||
if (err != ESP_OK) {
|
||||
delete entry;
|
||||
return err;
|
||||
}
|
||||
mNamespaces.push_back(entry);
|
||||
if (mNamespaceUsage.set(entry->mIndex, true) != ESP_OK) {
|
||||
delete entry;
|
||||
return ESP_FAIL;
|
||||
}
|
||||
mNamespaces.push_back(entry);
|
||||
itemIndex += item.span;
|
||||
}
|
||||
}
|
||||
|
@ -38,4 +38,7 @@ skip:
|
||||
- "components/bt/host/bluedroid/stack/btm/btm_dev.c"
|
||||
- "components/bt/host/bluedroid/stack/gatt/att_protocol.c"
|
||||
- "components/bt/host/bluedroid/stack/gatt/gatt_db.c"
|
||||
- "components/bt/host/bluedroid/stack/l2cap/l2c_utils.c"
|
||||
- "components/wifi_provisioning/src/scheme_ble.c"
|
||||
- "components/wpa_supplicant/src/rsn_supp/wpa.c"
|
||||
- "components/nvs_flash/src/nvs_storage.cpp"
|
||||
|
Loading…
x
Reference in New Issue
Block a user