Fix heap-use-after-free in fts_free()

This fixes up 83a87da430
This commit is contained in:
Marko Mäkelä 2024-03-21 16:01:29 +02:00
parent 5d85749953
commit 2250b42f52

View file

@ -5421,8 +5421,8 @@ fts_free(
{
fts_t* fts = table->fts;
table->fts = NULL;
mem_heap_free(fts->fts_heap);
fts->~fts_t();
mem_heap_free(fts->fts_heap);
}
/*********************************************************************//**