[LLVMdev] RegAllocSimple.cpp
Bill Wendling
isanbard at gmail.com
Tue May 2 18:16:23 PDT 2006
Hi Chris,
I saw this potential memory leak in RegAllocSimple.cpp. The
PhysRegsEverUsed was being allocated but never freed.
-bw
Index: RegAllocSimple.cpp
===================================================================
RCS file: /var/cvs/llvm/llvm/lib/CodeGen/RegAllocSimple.cpp,v
retrieving revision 1.66
diff -a -u -r1.66 RegAllocSimple.cpp
--- RegAllocSimple.cpp 22 Jan 2006 23:39:54 -0000 1.66
+++ RegAllocSimple.cpp 3 May 2006 01:14:57 -0000
@@ -240,6 +240,7 @@
AllocateBasicBlock(*MBB);
StackSlotForVirtReg.clear();
+ delete [] PhysRegsEverUsed;
return true;
}
More information about the llvm-dev
mailing list