-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: Layered Tables
-
None
-
Storage Engines - Foundations
-
235.195
-
None
-
None
__wt_layered_table_manager_add_table allocates memory for a WT_LAYERED_TABLE_MANAGER_ENTRY. This is not freed if a WT_ERR check fails.
int __wt_layered_table_manager_add_table(WT_SESSION_IMPL *session, uint32_t ingest_id) { WT_LAYERED_TABLE_MANAGER_ENTRY *entry; WT_ERR(__wt_calloc_one(session, &entry)); // Other WT_ERRs err: __wt_spin_unlock(session, &manager->layered_table_lock); // No cleanup of entry! return ret; }