diff --git a/src/storm/storage/BitVector.cpp b/src/storm/storage/BitVector.cpp index 4f54f8dd8..41d120ed9 100644 --- a/src/storm/storage/BitVector.cpp +++ b/src/storm/storage/BitVector.cpp @@ -158,6 +158,8 @@ namespace storm { // Only perform the assignment if the source and target are not identical. if (this != &other) { bitCount = other.bitCount; + if (this->buckets) + delete[] this->buckets; this->buckets = other.buckets; other.buckets = nullptr; }