fix: incomplete memory free

This commit is contained in:
2026-01-21 22:35:06 +03:00
parent 0f68da3dc2
commit 70d41655a9
2 changed files with 2 additions and 1 deletions

View File

@@ -1 +1 @@
1.0.1
1.0.2

View File

@@ -37,6 +37,7 @@ esp_err_t zh_vector_free(zh_vector_t *vector)
{
heap_caps_free(vector->items[i]);
}
heap_caps_free(vector->items);
vector->is_initialized = false;
ZH_LOGI("Vector deletion success.");
return ESP_OK;