forked from OSchip/llvm-project
plug leakage of mutex data. pthread_mutex_destroy() doesnt free our malloc'ed memory.
llvm-svn: 58805
This commit is contained in:
parent
b426f63302
commit
2817338558
|
@ -101,7 +101,7 @@ Mutex::~Mutex()
|
|||
pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_);
|
||||
assert(mutex != 0);
|
||||
pthread_mutex_destroy(mutex);
|
||||
assert(mutex != 0);
|
||||
free(mutex);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue