Skip to content

Commit

Permalink
Fix g++-14 -Wmaybe-uninitialized
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed Mar 19, 2024
1 parent 2ba4248 commit 83a87da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
7 changes: 2 additions & 5 deletions storage/innobase/fts/fts0fts.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5420,12 +5420,9 @@ fts_free(
dict_table_t* table) /*!< in/out: table with FTS indexes */
{
fts_t* fts = table->fts;

fts->~fts_t();

mem_heap_free(fts->fts_heap);

table->fts = NULL;
mem_heap_free(fts->fts_heap);
fts->~fts_t();
}

/*********************************************************************//**
Expand Down
5 changes: 1 addition & 4 deletions storage/innobase/que/que0que.cc
Original file line number Diff line number Diff line change
Expand Up @@ -450,15 +450,12 @@ que_graph_free_recursive(
ins = static_cast<ins_node_t*>(node);

que_graph_free_recursive(ins->select);
ins->select = NULL;

ins->~ins_node_t();

if (ins->entry_sys_heap != NULL) {
mem_heap_free(ins->entry_sys_heap);
ins->entry_sys_heap = NULL;
}

ins->~ins_node_t();
break;
case QUE_NODE_PURGE:
purge = static_cast<purge_node_t*>(node);
Expand Down

0 comments on commit 83a87da

Please sign in to comment.