ExportXMLWordPrintableJSON

    • 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;
      }
      

            Assignee:
            Salman Javed
            Reporter:
            Salman Javed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: