Browse Source

Fix memory leak in BitVector::operator=(BitVector&& other)

tempestpy_adaptions
Joachim Klein 7 years ago
committed by cdehnert
parent
commit
f5a3291ce7
  1. 2
      src/storm/storage/BitVector.cpp

2
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;
}

Loading…
Cancel
Save