mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 03:51:50 +01:00
Closes #2121 closes[t:2121] Free memory for last remaining ydbtime struct when shutting down.
git-svn-id: file:///svn/toku/tokudb@15975 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
ed3167c978
commit
c2d7c68f56
1 changed files with 2 additions and 0 deletions
|
@ -107,6 +107,8 @@ toku_ydb_lock_destroy(void) {
|
|||
int r;
|
||||
r = toku_pthread_mutex_destroy(&ydb_big_lock.lock); assert(r == 0);
|
||||
#if YDB_LOCK_MISS_TIME
|
||||
void * last_ydbtime = toku_pthread_getspecific(ydb_big_lock.time_key);
|
||||
if (last_ydbtime) toku_free(last_ydbtime);
|
||||
r = toku_pthread_key_delete(ydb_big_lock.time_key); assert(r == 0);
|
||||
#endif
|
||||
return r;
|
||||
|
|
Loading…
Add table
Reference in a new issue