From ffee0d4dfe4d70506495188ad62479cfaac1e0c7 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Wed, 21 Feb 2007 02:36:31 +0000 Subject: [PATCH] Fix memory leak (PR 775). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34462 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/ET-Forest.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/llvm/Analysis/ET-Forest.h b/include/llvm/Analysis/ET-Forest.h index be9df98e26b..2c6726f9289 100644 --- a/include/llvm/Analysis/ET-Forest.h +++ b/include/llvm/Analysis/ET-Forest.h @@ -141,6 +141,8 @@ public: // removeFromForest() ~ETNode() { delete RightmostOcc; + if (ParentOcc) + delete ParentOcc; } void removeFromForest() {