projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a559cd
)
Fix leak in my recent fix for PR8442.
author
Owen Anderson
<resistor@mac.com>
Tue, 9 Nov 2010 05:17:47 +0000
(
05:17
+0000)
committer
Owen Anderson
<resistor@mac.com>
Tue, 9 Nov 2010 05:17:47 +0000
(
05:17
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118490
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Attributes.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Attributes.cpp
b/lib/VMCore/Attributes.cpp
index d854628603bee0b6ed48059b8ef43c0a0aa2b5a9..c9240e534c73842be24bc179574e52d6f1053140 100644
(file)
--- a/
lib/VMCore/Attributes.cpp
+++ b/
lib/VMCore/Attributes.cpp
@@
-132,7
+132,7
@@
public:
void DropRef() {
sys::SmartScopedLock<true> Lock(*ALMutex);
sys::cas_flag old = RefCount++;
- if (old ==
0
)
+ if (old ==
1
)
delete this;
}