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:
Nuno Lopes 2008-11-06 16:21:49 +00:00
parent b951aec3ad
commit 274c6a6145

View File

@ -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);
}
}