Skip to content
Snippets Groups Projects
Commit eb67c9c9 authored by Simon Praetorius's avatar Simon Praetorius
Browse files

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

parent 7077d22e
No related branches found
No related tags found
1 merge request!542Fix error "delete called on pointer returned from a mismatched allocation function"
Pipeline #65089 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