Commit 402f36dd authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-30936 fixup

fil_space_t::~fil_space_t(): Invoke ut_free(name) because
doing so in the callers would trip MSAN_OPTIONS=poison_in_dtor=1
parent dfa90257
......@@ -873,7 +873,6 @@ fil_space_free_low(
fil_space_destroy_crypt_data(&space->crypt_data);
space->~fil_space_t();
ut_free(space->name);
ut_free(space);
}
......@@ -998,7 +997,6 @@ fil_space_t *fil_space_t::create(const char *name, ulint id, ulint flags,
mutex_exit(&fil_system.mutex);
rw_lock_free(&space->latch);
space->~fil_space_t();
ut_free(space->name);
ut_free(space);
return(NULL);
}
......
......@@ -339,6 +339,7 @@ struct fil_space_t final
#endif
{
#ifndef UNIV_INNOCHECKSUM
~fil_space_t() { ut_free(name); }
friend fil_node_t;
ulint id; /*!< space id */
hash_node_t hash; /*!< hash chain node */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment