Skip to content

Commit

Permalink
Use array delete
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Marr <[email protected]>
  • Loading branch information
smarr committed Jan 10, 2024
1 parent d2afaf5 commit 5ff5aca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions benchmarks/C++/src/havlak.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,14 +254,14 @@ class HavlakLoopFinder {
~HavlakLoopFinder() {
_nonBackPreds.destroyValues();
_backPreds.destroyValues();
delete _header;
delete _type;
delete[] _header;
delete[] _type;
delete _last;

for (int32_t i = 0; i < _maxSize; i += 1) {
delete _nodes[i];
}
delete _nodes;
delete[] _nodes;
}

void findLoops() {
Expand Down

0 comments on commit 5ff5aca

Please sign in to comment.