mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-08 08:54:58 +00:00
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
This commit is contained in:
parent
b951aec3ad
commit
274c6a6145
@ -101,7 +101,7 @@ Mutex::~Mutex()
|
|||||||
pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_);
|
pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_);
|
||||||
assert(mutex != 0);
|
assert(mutex != 0);
|
||||||
pthread_mutex_destroy(mutex);
|
pthread_mutex_destroy(mutex);
|
||||||
assert(mutex != 0);
|
free(mutex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user