tsan: remove unbalanced mutex unlock

The mutex is now unlocked by the scoped Lock object.

Differential Revision: https://reviews.llvm.org/D107266
This commit is contained in:
Dmitry Vyukov 2021-08-02 14:15:07 +02:00
parent 59198d062f
commit 03372e72d3
1 changed files with 0 additions and 1 deletions

View File

@ -204,7 +204,6 @@ void MutexPostLock(ThreadState *thr, uptr pc, uptr addr, u32 flagz, int rec) {
ctx->dd->MutexAfterLock(&cb, &s->dd, true, flagz & MutexFlagTryLock);
}
mid = s->GetId();
s->mtx.Unlock();
}
if (report_double_lock)
ReportMutexMisuse(thr, pc, ReportTypeMutexDoubleLock, addr, mid);