aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGordon Henriksen <gordonhenriksen@mac.com>2008-01-15 20:02:11 +0000
committerGordon Henriksen <gordonhenriksen@mac.com>2008-01-15 20:02:11 +0000
commit9b4841657fd54e0e88240b7973d572edc4e02273 (patch)
tree4f1f1dde12473263e71e96c98eb30265e886e069 /include
parent331131b0c17839c8ded1fd4897e9d1d6ebff5438 (diff)
downloadexternal_llvm-9b4841657fd54e0e88240b7973d572edc4e02273.zip
external_llvm-9b4841657fd54e0e88240b7973d572edc4e02273.tar.gz
external_llvm-9b4841657fd54e0e88240b7973d572edc4e02273.tar.bz2
Fix a memory correctness error noticed by valgrind (harmless in practice).
Thanks to Duncan Sands for noticing it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46007 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/StringPool.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/StringPool.h b/include/llvm/Support/StringPool.h
index 1f3d8a0..8661f60 100644
--- a/include/llvm/Support/StringPool.h
+++ b/include/llvm/Support/StringPool.h
@@ -110,7 +110,7 @@ namespace llvm {
return;
if (--S->getValue().Refcount == 0) {
S->getValue().Pool->InternTable.remove(S);
- delete S;
+ S->Destroy();
}
S = 0;
}