Skip to content

Commit

Permalink
fix crasher due to double free in hierarchical
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed May 5, 2012
1 parent 64d63bd commit e8c646b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/shogun/clustering/Hierarchical.cpp
Expand Up @@ -177,17 +177,17 @@ int32_t CHierarchical::get_merges()

SGVector<int32_t> CHierarchical::get_assignment()
{
return SGVector<int32_t>(assignment,table_size);
return SGVector<int32_t>(assignment,table_size, false);
}

SGVector<float64_t> CHierarchical::get_merge_distances()
{
return SGVector<float64_t>(merge_distance,merges);
return SGVector<float64_t>(merge_distance,merges, false);
}

SGMatrix<int32_t> CHierarchical::get_cluster_pairs()
{
return SGMatrix<int32_t>(pairs,2,merges);
return SGMatrix<int32_t>(pairs,2,merges, false);
}


Expand Down

0 comments on commit e8c646b

Please sign in to comment.