Skip to content

Commit

Permalink
fix double free in linearhmm
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed May 5, 2012
1 parent 6b5dcbc commit 21b11be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shogun/distributions/LinearHMM.cpp
Expand Up @@ -241,7 +241,7 @@ float64_t CLinearHMM::get_log_derivative(int32_t num_param, int32_t num_example)

SGVector<float64_t> CLinearHMM::get_transition_probs()
{
return SGVector<float64_t>(transition_probs, num_params);
return SGVector<float64_t>(transition_probs, num_params, false);
}

bool CLinearHMM::set_transition_probs(const SGVector<float64_t> probs)
Expand All @@ -265,7 +265,7 @@ bool CLinearHMM::set_transition_probs(const SGVector<float64_t> probs)

SGVector<float64_t> CLinearHMM::get_log_transition_probs()
{
return SGVector<float64_t>(log_transition_probs, num_params);
return SGVector<float64_t>(log_transition_probs, num_params, false);
}

bool CLinearHMM::set_log_transition_probs(const SGVector<float64_t> probs)
Expand Down

0 comments on commit 21b11be

Please sign in to comment.