aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Support/StringPool.h
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
commitafa47c5a261e0a52b52b1e66034237dff80bc0f4 (patch)
tree4f1f1dde12473263e71e96c98eb30265e886e069 /include/llvm/Support/StringPool.h
parentfdd75125b87f335ced93c0d9d88d0b3045fe9ecc (diff)
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/llvm/Support/StringPool.h')
-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 1f3d8a0f0a..8661f60e2e 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;
}