Skip to content

Commit

Permalink
Fixed MKL training double free
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Jul 10, 2012
1 parent fa071cb commit dceddcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shogun/classifier/mkl/MKL.cpp
Expand Up @@ -1505,7 +1505,7 @@ void CMKL::compute_sum_beta(float64_t* sumw)
}

mkl_iterations++;
kernel->set_subkernel_weights(SGVector<float64_t>( (float64_t*) old_beta, num_kernels));
kernel->set_subkernel_weights(SGVector<float64_t>( (float64_t*) old_beta, num_kernels, false));
}


Expand Down

0 comments on commit dceddcf

Please sign in to comment.