Skip to content
Snippets Groups Projects

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

Merged Markus Blatt requested to merge cherry-pick-497d5223 into releases/2.9
1 file
+ 2
4
Compare changes
  • Side-by-side
  • Inline
+ 2
4
@@ -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_;
Loading