[llvm-commits] CVS: llvm/include/llvm/ADT/BitVector.h
Chris Lattner
sabre at nondot.org
Mon Mar 19 19:11:14 PDT 2007
Changes in directory llvm/include/llvm/ADT:
BitVector.h updated: 1.17 -> 1.18
---
Log message:
Add a dtor to fix leaks from all clients of BitVector.
---
Diffs of the changes: (+4 -0)
BitVector.h | 4 ++++
1 files changed, 4 insertions(+)
Index: llvm/include/llvm/ADT/BitVector.h
diff -u llvm/include/llvm/ADT/BitVector.h:1.17 llvm/include/llvm/ADT/BitVector.h:1.18
--- llvm/include/llvm/ADT/BitVector.h:1.17 Thu Mar 1 20:31:37 2007
+++ llvm/include/llvm/ADT/BitVector.h Mon Mar 19 21:10:56 2007
@@ -86,6 +86,10 @@
Bits = new BitWord[Capacity];
std::copy(RHS.Bits, &RHS.Bits[Capacity], Bits);
}
+
+ ~BitVector() {
+ delete[] Bits;
+ }
/// size - Returns the number of bits in this bitvector.
unsigned size() const { return Size; }
More information about the llvm-commits
mailing list