summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Win32
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/System/Win32')
-rw-r--r--llvm/lib/System/Win32/Mutex.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/System/Win32/Mutex.inc b/llvm/lib/System/Win32/Mutex.inc
index 439ce1a401a..0a4bc4b7514 100644
--- a/llvm/lib/System/Win32/Mutex.inc
+++ b/llvm/lib/System/Win32/Mutex.inc
@@ -31,6 +31,7 @@ Mutex::Mutex(bool /*recursive*/)
Mutex::~Mutex()
{
DeleteCriticalSection((LPCRITICAL_SECTION)data_);
+ delete (LPCRITICAL_SECTION)data_;
data_ = 0;
}
OpenPOWER on IntegriCloud