Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
b154d302
Commit
b154d302
authored
Sep 28, 2018
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
memory leak when updating @@rocksdb_update_cf_options
parent
556f058a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
storage/rocksdb/ha_rocksdb.cc
storage/rocksdb/ha_rocksdb.cc
+5
-0
No files found.
storage/rocksdb/ha_rocksdb.cc
View file @
b154d302
...
@@ -5438,6 +5438,9 @@ static int rocksdb_done_func(void *const p) {
...
@@ -5438,6 +5438,9 @@ static int rocksdb_done_func(void *const p) {
//rocksdb_tbl_options = nullptr;
//rocksdb_tbl_options = nullptr;
rocksdb_stats
=
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
);
my_error_unregister
(
HA_ERR_ROCKSDB_FIRST
,
HA_ERR_ROCKSDB_LAST
);
/*
/*
...
@@ -14002,6 +14005,8 @@ rocksdb_set_update_cf_options(THD *const /* unused */,
...
@@ -14002,6 +14005,8 @@ rocksdb_set_update_cf_options(THD *const /* unused */,
RDB_MUTEX_LOCK_CHECK
(
rdb_sysvars_mutex
);
RDB_MUTEX_LOCK_CHECK
(
rdb_sysvars_mutex
);
my_free
(
*
reinterpret_cast
<
char
**>
(
var_ptr
));
if
(
!
val
)
{
if
(
!
val
)
{
*
reinterpret_cast
<
char
**>
(
var_ptr
)
=
nullptr
;
*
reinterpret_cast
<
char
**>
(
var_ptr
)
=
nullptr
;
RDB_MUTEX_UNLOCK_CHECK
(
rdb_sysvars_mutex
);
RDB_MUTEX_UNLOCK_CHECK
(
rdb_sysvars_mutex
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment