Skip to content

Commit c52293e

Browse files
committed
fix memory bug
1 parent a3cd0e4 commit c52293e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/PhasarLLVM/DataFlowSolver/IfdsIde/Problems/ExtendedTaintAnalysis/AbstractMemoryLocationFactory.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ auto AbstractMemoryLocationFactoryBase::Allocator::Block::create(
4343
}
4444

4545
void AbstractMemoryLocationFactoryBase::Allocator::Block::destroy(Block *Blck) {
46-
::operator delete (Blck,
47-
std::align_val_t{alignof(AbstractMemoryLocationImpl)});
46+
::operator delete[](Blck,
47+
std::align_val_t{alignof(AbstractMemoryLocationImpl)});
4848
}
4949

5050
AbstractMemoryLocationFactoryBase::Allocator::Allocator(

0 commit comments

Comments
 (0)