Commit b154d302 authored by Sergei Golubchik's avatar Sergei Golubchik

memory leak when updating @@rocksdb_update_cf_options

parent 556f058a
......@@ -5438,6 +5438,9 @@ static int rocksdb_done_func(void *const p) {
//rocksdb_tbl_options = nullptr;
rocksdb_stats = nullptr;
my_free(rocksdb_update_cf_options);
rocksdb_update_cf_options = nullptr;
my_error_unregister(HA_ERR_ROCKSDB_FIRST, HA_ERR_ROCKSDB_LAST);
/*
......@@ -14002,6 +14005,8 @@ rocksdb_set_update_cf_options(THD *const /* unused */,
RDB_MUTEX_LOCK_CHECK(rdb_sysvars_mutex);
my_free(*reinterpret_cast<char **>(var_ptr));
if (!val) {
*reinterpret_cast<char **>(var_ptr) = nullptr;
RDB_MUTEX_UNLOCK_CHECK(rdb_sysvars_mutex);
......
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