commit | 25e84078e38ce3363bf3fd8342fea7e8bdfc0abd | [log] [tgz] |
---|---|---|
author | Owen Anderson <resistor@mac.com> | Tue Nov 09 05:17:47 2010 +0000 |
committer | Owen Anderson <resistor@mac.com> | Tue Nov 09 05:17:47 2010 +0000 |
tree | d6a33f472862461a2c72245cc1d683b7ce23f7ec | |
parent | 1ac093b9eae40d5c0f47b426f11ecca8a98e9a80 [diff] [blame] |
Fix leak in my recent fix for PR8442. llvm-svn: 118490
diff --git a/llvm/lib/VMCore/Attributes.cpp b/llvm/lib/VMCore/Attributes.cpp index d854628..c9240e5 100644 --- a/llvm/lib/VMCore/Attributes.cpp +++ b/llvm/lib/VMCore/Attributes.cpp
@@ -132,7 +132,7 @@ void DropRef() { sys::SmartScopedLock<true> Lock(*ALMutex); sys::cas_flag old = RefCount++; - if (old == 0) + if (old == 1) delete this; }