Skip to content

Commit

Permalink
wrong delete
Browse files Browse the repository at this point in the history
  • Loading branch information
cheshmi committed Jun 15, 2020
1 parent 3b1e2c5 commit 52eb8d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mp_format_converter.h
Original file line number Diff line number Diff line change
Expand Up @@ -778,13 +778,13 @@ namespace format {
auto *d = new Dense(smp_->u_->row, 1, 1, min_dbl);
bf_->l = sym_lib::concatenate_two_dense(smp_->b_,d);
bf_->u = sym_lib::concatenate_two_dense(smp_->b_,smp_->u_);
delete []d;
delete d;
}
if(!smp_->u_){
auto *d = new Dense(smp_->l_->row, 1, 1, max_dbl);
bf_->l = sym_lib::concatenate_two_dense(smp_->b_,smp_->l_);
bf_->u = sym_lib::concatenate_two_dense(smp_->b_,d);
delete []d;
delete d;
}
}else{
bf_->l = sym_lib::concatenate_two_dense(smp_->b_,smp_->l_);
Expand Down

0 comments on commit 52eb8d2

Please sign in to comment.