[llvm-commits] [llvm] r46007 - /llvm/trunk/include/llvm/Support/StringPool.h
Gordon Henriksen
gordonhenriksen at mac.com
Tue Jan 15 12:02:15 PST 2008
Author: gordon
Date: Tue Jan 15 14:02:11 2008
New Revision: 46007
URL: http://llvm.org/viewvc/llvm-project?rev=46007&view=rev
Log:
Fix a memory correctness error noticed by valgrind (harmless in practice).
Thanks to Duncan Sands for noticing it.
Modified:
llvm/trunk/include/llvm/Support/StringPool.h
Modified: llvm/trunk/include/llvm/Support/StringPool.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/StringPool.h?rev=46007&r1=46006&r2=46007&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/StringPool.h (original)
+++ llvm/trunk/include/llvm/Support/StringPool.h Tue Jan 15 14:02:11 2008
@@ -110,7 +110,7 @@
return;
if (--S->getValue().Refcount == 0) {
S->getValue().Pool->InternTable.remove(S);
- delete S;
+ S->Destroy();
}
S = 0;
}
More information about the llvm-commits
mailing list