commit | 0eeed74107766935189d9ada2036eabd8bcec8bf | [log] [tgz] |
---|---|---|
author | Nuno Lopes <nunoplopes@sapo.pt> | Thu Nov 06 16:21:49 2008 +0000 |
committer | Nuno Lopes <nunoplopes@sapo.pt> | Thu Nov 06 16:21:49 2008 +0000 |
tree | 53ee05902168a367d950ae7c6affc3d2b36029d5 | |
parent | 951507e9c2202c58069cb8dc370736aef826f960 [diff] |
plug leakage of mutex data. pthread_mutex_destroy() doesnt free our malloc'ed memory. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58805 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/System/Mutex.cpp b/lib/System/Mutex.cpp index f55dd3f..d95c25b 100644 --- a/lib/System/Mutex.cpp +++ b/lib/System/Mutex.cpp
@@ -101,7 +101,7 @@ pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_); assert(mutex != 0); pthread_mutex_destroy(mutex); - assert(mutex != 0); + free(mutex); } }