plug leakage of mutex data. pthread_mutex_destroy() doesnt free our malloc'ed memory.

llvm-svn: 58805
This commit is contained in:
Nuno Lopes 2008-11-06 16:21:49 +00:00
parent b426f63302
commit 2817338558
1 changed files with 1 additions and 1 deletions

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