Skip to content

Commit 8a7b436

Browse files
author
kjetil
committed
export: properly delete temporary arrays
1 parent 9888f39 commit 8a7b436

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opm/models/discretization/common/tpfalinearizer.hh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,8 @@ public:
475475
fclose(out);
476476

477477
// clean-up
478-
delete rows;
479-
delete cols;
478+
delete [] rows;
479+
delete [] cols;
480480
}
481481

482482
void setLinearizationType(LinearizationType linearizationType){

0 commit comments

Comments
 (0)