Skip to content
Snippets Groups Projects
Commit 497d5223 authored by Markus Blatt's avatar Markus Blatt
Browse files

Merge branch 'issue/missmatched-new-delete' into 'master'

Fix error "delete  called on pointer returned from a mismatched allocation function"

See merge request core/dune-istl!542
parents 7077d22e eb67c9c9
No related branches found
No related tags found
1 merge request!542Fix error "delete called on pointer returned from a mismatched allocation function"
Pipeline #65111 passed
......@@ -706,10 +706,8 @@ namespace Dune
return weight_;
}
void free(){
if(weight_!=0) {
delete weight_;
weight_=0;
}
delete[] weight_;
weight_ = nullptr;
}
private:
Metis::idx_t* weight_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment