[llvm-commits] CVS: llvm/include/llvm/Analysis/ET-Forest.h
Devang Patel
dpatel at apple.com
Tue Feb 20 18:36:48 PST 2007
Changes in directory llvm/include/llvm/Analysis:
ET-Forest.h updated: 1.7 -> 1.8
---
Log message:
Fix memory leak (PR 775: http://llvm.org/PR775 ).
---
Diffs of the changes: (+2 -0)
ET-Forest.h | 2 ++
1 files changed, 2 insertions(+)
Index: llvm/include/llvm/Analysis/ET-Forest.h
diff -u llvm/include/llvm/Analysis/ET-Forest.h:1.7 llvm/include/llvm/Analysis/ET-Forest.h:1.8
--- llvm/include/llvm/Analysis/ET-Forest.h:1.7 Thu Sep 21 20:05:33 2006
+++ llvm/include/llvm/Analysis/ET-Forest.h Tue Feb 20 20:36:31 2007
@@ -141,6 +141,8 @@
// removeFromForest()
~ETNode() {
delete RightmostOcc;
+ if (ParentOcc)
+ delete ParentOcc;
}
void removeFromForest() {
More information about the llvm-commits
mailing list