Commit c2d7c68f authored by Barry Perlman's avatar Barry Perlman Committed by Yoni Fogel

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
parent ed3167c9
...@@ -107,6 +107,8 @@ toku_ydb_lock_destroy(void) { ...@@ -107,6 +107,8 @@ toku_ydb_lock_destroy(void) {
int r; int r;
r = toku_pthread_mutex_destroy(&ydb_big_lock.lock); assert(r == 0); r = toku_pthread_mutex_destroy(&ydb_big_lock.lock); assert(r == 0);
#if YDB_LOCK_MISS_TIME #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); r = toku_pthread_key_delete(ydb_big_lock.time_key); assert(r == 0);
#endif #endif
return r; return r;
......
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